Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make this query Form Editable?

Status
Not open for further replies.
Jan 20, 2005
180
US
Code:
SELECT InvProductOrders.PO, InvProductOrders.Item, InvProductOrders.SupplierID, InvProductOrders.Quantity, InvProductOrders.OrderPO, InvProductOrders.OrderDate, InvProductOrders.DateRecv, InvProductOrders.WhoRecv, InvProductOrders.AmtRecv, InvMaterials.ItemDesc, InvProductOrders.Comment

FROM InvProductOrders INNER JOIN InvMaterials ON InvProductOrders.Item = InvMaterials.Item

ORDER BY InvMaterials.ItemDesc;

I can make this query editable by changing it to inconsistant updates however when the form this query is designed for will not allow me to edit it.

Im wondering if this is because Item is the Primary key for InvProductOrders, and its a secondary/foriegn key for Item and can contain duplicates (at this point).
 
Hi!

What is the primary key for InvMaterials? Usually for a one-many link to be updatable in a query the select statement needs to include the primary key from the many table.

hth


Jeff Bridgham
Purdue University
Graduate School
Data Analyst
 
Its actually a 1-1 relationship, just at this point there are some NULL entries in the ITEM field. I need to be going through and changing this as is.

The primary key for InvProductORders is Item, and the primary key is just a recID for InvMaterials.

 
Thanks PHV... learned a couple things..

Made the ITEM field uniq and indexed it as such, and form is now editable.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top