Update Query

K

Ken Hutson

Hi Group,

Is it possible to use an update query to replace a only portion of a field
value? For example:

UPDATE tblname SET left(fieldname,1) = "A" WHERE left(fieldname,1) = "B";

I have tried this and the query won't save.

Thanks,
Ken Hutson
San Antonio, Texas
 
R

R. Hicks

Try ....

UPDATE tblnames SET fieldname = "A" & Mid([fieldname],2)
WHERE Left([fieldname],1)="B";

RD
 
K

Ken Hutson

Thank you RDH!

Ken Hutson
San Antonio, Texas

R. Hicks said:
Try ....

UPDATE tblnames SET fieldname = "A" & Mid([fieldname],2)
WHERE Left([fieldname],1)="B";

RDH
 

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