Find and replace field

S

ShagNasty

I need a translation -- How would this be handled (written) in Access"ise"?
Replace FieldA with "54321" if FieldB = "001234" and FieldA = "00000"

many thanks in advanced....
ShagNasty
Office97 WinXP
 
F

fredg

I need a translation -- How would this be handled (written) in Access"ise"?
Replace FieldA with "54321" if FieldB = "001234" and FieldA = "00000"

many thanks in advanced....
ShagNasty
Office97 WinXP

If the data is exactly as you state it above, you can run an Update
query.

Update YourTable Set YourTable.[FieldA] = "54321" Where
YourTable.[FieldA] = "00000" and YourTable.[FieldB] = "001234"

Note that FieldA and FieldB must both be text datatypes, as indicated
with the quotes around the values.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top