how do i create an update query where update a field based on criteria in another field: ie
ThanksCode:update table set[shippercountry]=northeast if [shipper state] = "VA" or "SC"
how do i create an update query where update a field based on criteria in another field: ie
ThanksCode:update table set[shippercountry]=northeast if [shipper state] = "VA" or "SC"
Try:
UPDATE tablename SET [shippercountry] = "northeast" WHERE [shipper state] = "VA" OR [shipper state] = "SC";
Would not need to do this if you had a table of States with the Region as a field.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.