Is there a way to create an update query that updates multiple fields, each with different criteria. Something like:
Update table1
set field1 = "blue"
where table2.code = 5
set field2 = "red"
where table2.code = 3
etc...
I know the above isn't working code (I left out the join, etc), but hopefully it shows what I'm trying to do.
For now, I've created multiple update queries, and put them all in a macro, but you have to respond to each one. I would like to have one consolidated update query.
Update table1
set field1 = "blue"
where table2.code = 5
set field2 = "red"
where table2.code = 3
etc...
I know the above isn't working code (I left out the join, etc), but hopefully it shows what I'm trying to do.
For now, I've created multiple update queries, and put them all in a macro, but you have to respond to each one. I would like to have one consolidated update query.