B
Ben
Hi all,
I need to write an update query but not sure how. I can create four
update queries to do the job, but I wish to know if there is a way to do
it all in one swoop.
Currently, I have:
update tblX AS X
Set X.ProductCode = "123"
Where (X.Mfr = "A") AND (X.ProductCode = "123_")
update tblX AS X
Set X.ProductCode = "234"
Where (X.Mfr = "A") AND (X.ProductCode = "234_")
update tblX AS X
Set X.ProductCode = "123"
Where (X.Mfr = "B") AND (X.ProductCode = "123.")
update tblX AS X
Set X.ProductCode = "234"
Where (X.Mfr = "B") AND (X.ProductCode = "234.")
What is desired whether I can combine all four into one. Can you share
with me if this is possible?
Thanks in advance,
Ben
I need to write an update query but not sure how. I can create four
update queries to do the job, but I wish to know if there is a way to do
it all in one swoop.
Currently, I have:
update tblX AS X
Set X.ProductCode = "123"
Where (X.Mfr = "A") AND (X.ProductCode = "123_")
update tblX AS X
Set X.ProductCode = "234"
Where (X.Mfr = "A") AND (X.ProductCode = "234_")
update tblX AS X
Set X.ProductCode = "123"
Where (X.Mfr = "B") AND (X.ProductCode = "123.")
update tblX AS X
Set X.ProductCode = "234"
Where (X.Mfr = "B") AND (X.ProductCode = "234.")
What is desired whether I can combine all four into one. Can you share
with me if this is possible?
Thanks in advance,
Ben