Sam Summers
Registered User.
- Local time
- Today, 23:10
- Joined
- Sep 17, 2001
- Messages
- 939
I have been working on this for a week and cant get my head round it at all even though i have successfully managed it before.
Here goes
I am opening a form (ViewbyKit) which displays a whole kits items.
From this the user clicks on a button to open another form (KitMove) on this the user selects a new location from a combobox (JobNo) and clicks on a button that runs the update query (JobChange).
This is the SQL for it:
UPDATE Equipment SET Equipment.LocationID = [Forms]![KitMove]![JobNo]
WHERE (((Equipment.KitRef)=[Forms]![ViewbyKit]![KitNo]) AND ((Equipment.Scrapped)=False) AND ((Equipment.Lost)=False));
I am trying to ensure that only items in the selected kit are relocated and not all items in the Equipment Table.
But when i run the whole thing, nothing is happening and the items are staying where thy are.
Many thanks in advance
Please help me!!
Here goes
I am opening a form (ViewbyKit) which displays a whole kits items.
From this the user clicks on a button to open another form (KitMove) on this the user selects a new location from a combobox (JobNo) and clicks on a button that runs the update query (JobChange).
This is the SQL for it:
UPDATE Equipment SET Equipment.LocationID = [Forms]![KitMove]![JobNo]
WHERE (((Equipment.KitRef)=[Forms]![ViewbyKit]![KitNo]) AND ((Equipment.Scrapped)=False) AND ((Equipment.Lost)=False));
I am trying to ensure that only items in the selected kit are relocated and not all items in the Equipment Table.
But when i run the whole thing, nothing is happening and the items are staying where thy are.
Many thanks in advance
Please help me!!