ChewDinCompSci
Technical User
I am trying to update fields in a column called FuelWord with the word "Gasoline" or "Diesel" based on the value of another field in the same record, FuelType which has a value of "1" or "2". This is the SQL I have tried:
UPDATE tbl_FuelUsage SET tbl_FuelUsage.FuelWord = "Gasoline"
WHERE ((([tbl_FuelUsage].[FuelType])="1")) Or ((([tbl_FuelUsage].[FuelWord])="Diesel"));
When I first viewed the data it appeared to work. After running the update query a second time every field under the column FuelWord changed to "Gasoline"
What's wrong??? Any help is much appreciated.
MatChew
codename: vba4dumbE
UPDATE tbl_FuelUsage SET tbl_FuelUsage.FuelWord = "Gasoline"
WHERE ((([tbl_FuelUsage].[FuelType])="1")) Or ((([tbl_FuelUsage].[FuelWord])="Diesel"));
When I first viewed the data it appeared to work. After running the update query a second time every field under the column FuelWord changed to "Gasoline"
What's wrong??? Any help is much appreciated.
MatChew
codename: vba4dumbE