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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

updating records

Status
Not open for further replies.

microcrafters

Programmer
Oct 4, 2009
4
US
I have a database that has the following tables
-Parts with the following fields
[item number], [description] , [systemID],[Type]
I want to create a form that will allow me to save both parts and assemblies in the parts table.
I created a lookup form where the main form uses a query to that finds all parts where the [Type] = System. then the form uses a subform that uses a query to list all parts that [systemID]=[ItemNumber]of the lookup field. then the subform is a datasheet with the item number being a lookup field that uses a query to show records where [systemID] is null. this far all works well. the problem i am having is that when i select a part that i want to add to this assembly i want the form to update the [SystemID]to whichever system is showing in the main forms lookup field. this is similar to adding items to and invoice by updating the invoicenumber field in the parts table. however the system keeps telling me "you can't assign a value to this object" then creates a new part with inly an ID and SystemID. any help will be appreciated
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top