nighthawk999
New member
- Local time
- Today, 05:50
- Joined
- Mar 7, 2008
- Messages
- 8
I have one table, I want to update multiple fields in that Table with values.
Currently I have on update query for each update.
So for example
Rows: Commercial Quotes, Cover Notes, Personal Quotes
Will have the values: Yes, No, Yes in them.
I need to update those fields, if they say Yes to Commercial Quotes, Cover Notes or Personal Quotes depending on the field obviously. And blank them out if it says No.
Currently I have 30+ different queries I have to click individually one after the other to update each row.
I was wondering if theres a quicker way of doing this all in one hit.
I have a tiny bit of SQL knowledge.
So one of the queries I've figured out I've converted to SQL but again it only updates one instance...
I tried whacking an OR replacing the ; and repeating that statment replacing Commercial Quotes with Cover Notes but it errored out on me.
This is where I get completely stuck and my meagre knowledge fails me so any help would be useful.
Thanks in advance
Matt
Currently I have on update query for each update.
So for example
Rows: Commercial Quotes, Cover Notes, Personal Quotes
Will have the values: Yes, No, Yes in them.
I need to update those fields, if they say Yes to Commercial Quotes, Cover Notes or Personal Quotes depending on the field obviously. And blank them out if it says No.
Currently I have 30+ different queries I have to click individually one after the other to update each row.
I was wondering if theres a quicker way of doing this all in one hit.
I have a tiny bit of SQL knowledge.
So one of the queries I've figured out I've converted to SQL but again it only updates one instance...
UPDATE Enabler_Data SET Enabler_Data.[Commercial Quotes] = "Commercial Quotes" WHERE (((Enabler_Data.[Commercial Quotes]) = "YES"));
I tried whacking an OR replacing the ; and repeating that statment replacing Commercial Quotes with Cover Notes but it errored out on me.
This is where I get completely stuck and my meagre knowledge fails me so any help would be useful.
Thanks in advance
Matt