LonnieJohnson
Programmer
How do I write an update query that would update certain fields based on the value of other fields? For example I want to do something like this.
UPDATE CUSTOMERS (DIST_CODE, PACKING_NUM)
VALUES
'HERE IS WHERE I AM LOST
IF COUNTY = 'WY' THEN DIST_CODE = A1 AND PACKING_NUM = 8
IF COUNTY = 'SG' THEN DIST_CODE = A2 AND PACKING_NUM = 9
IF COUNTY = 'DG' THEN DIST_CODE = A3 AND PACKING_NUM = 10
I KNOW WHAT I WANT TO DO, JUST CAN GET THE SYNTAX TO AGREE WITH ME
ProDev, MS Access Applications
Visit me at ==> Contact me at ==>lonniejohnson@prodev.us
May God bless you beyond your imagination!!!
UPDATE CUSTOMERS (DIST_CODE, PACKING_NUM)
VALUES
'HERE IS WHERE I AM LOST
IF COUNTY = 'WY' THEN DIST_CODE = A1 AND PACKING_NUM = 8
IF COUNTY = 'SG' THEN DIST_CODE = A2 AND PACKING_NUM = 9
IF COUNTY = 'DG' THEN DIST_CODE = A3 AND PACKING_NUM = 10
I KNOW WHAT I WANT TO DO, JUST CAN GET THE SYNTAX TO AGREE WITH ME
ProDev, MS Access Applications
Visit me at ==> Contact me at ==>lonniejohnson@prodev.us
May God bless you beyond your imagination!!!