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

Updating a field in a table after an initial update

Status
Not open for further replies.

kjpreston

Technical User
Jun 3, 2005
34
US
I have an Update query that updates tbl_Inven2004 with data from tbl_temp. Once this update is completed I need to change the Status field in tbl_Inven2004 to 'FOUND' if the field ScannerECN in tbl_Inven2004 is no longer null. I have tried, IIf([tbl_Inven2004]![ScannerECN] Is Not Null, [tbl_Inven2004]![Status]='Found', "")in as both criteria and as an expression but it doesn't work. Any ideas? I think I'm coming at this from the wrong angle but I can't seem to find the right one. Thanks
 
UPDATE tbl_Inven2004 SET Status='Found' WHERE ScannerECN Is Not Null;

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Now to really show my ignorence. Where to I put it?
 
This the SQL code of an update query.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Thank you very much. You have been a tremendous help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top