Brian Martin
Registered User.
- Local time
- Today, 19:40
- Joined
- Jul 24, 2002
- Messages
- 68
I have a form that displays a list of parts from the parts library table. beside each part is a button that when clicked starts a query that asks the user for the quantity of the part they need and then adds it to the separate parts list. However I want code in the button that checks whether the part chosen is already in the separate parts list and if so an update query is carried out that updates the quantity of the part in the separate list.
Something along the lines od the following but I'm just not quite sure how to write the code.
IF part number = list.part number THEN
openquery UpdateQuantity
ELSE
openquery AddPart
Something along the lines od the following but I'm just not quite sure how to write the code.
IF part number = list.part number THEN
openquery UpdateQuantity
ELSE
openquery AddPart