G
Guest
I have a table with a blank NameID field. I was hoping to use an update query
to set the values in this field depending on what appeared in the Name field
i.e. along the lines of:
UPDATE tblMaster SET tblMaster.NameID = 1 if tblMaster.Name = "AAA" ELSE
= 2 if
"BBB" ELSE
3
"CCC"
etc. etc.
I don't seem to be having much luck with the syntax.
Thanks in advance for any help.
to set the values in this field depending on what appeared in the Name field
i.e. along the lines of:
UPDATE tblMaster SET tblMaster.NameID = 1 if tblMaster.Name = "AAA" ELSE
= 2 if
"BBB" ELSE
3
"CCC"
etc. etc.
I don't seem to be having much luck with the syntax.
Thanks in advance for any help.