Update query question help please

T

TotallyConfused

I need some help with an update query please.

Name field consists of 3 letters (BBC)
control number consists of 3 Letters and 5 numbers (BBC12345)

I want to update some control numbers by changing the first 3 letters to
read CBB and leave the numbers alone.

How do I do this? Thank you in advance for any help you can provide.
 
K

KARL DEWEY

Use Replace function.
Replace([Name], "BBC", "CBB")

You will need to establish some criteria so that only the records you want
to change will be affected.

Using 'Name' as the name of a field is not good.
 
T

TotallyConfused

This worked!! Thank you very much. Have a great day!!

KARL DEWEY said:
Use Replace function.
Replace([Name], "BBC", "CBB")

You will need to establish some criteria so that only the records you want
to change will be affected.

Using 'Name' as the name of a field is not good.

--
KARL DEWEY
Build a little - Test a little


TotallyConfused said:
I need some help with an update query please.

Name field consists of 3 letters (BBC)
control number consists of 3 Letters and 5 numbers (BBC12345)

I want to update some control numbers by changing the first 3 letters to
read CBB and leave the numbers alone.

How do I do this? Thank you in advance for any help you can provide.
 

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