Delete left two characters

D

Dan C.

I'm trying to delete with code the left two characters in
a text string. I can do it with "find and replace", but
I want to do it with code.

For example, I would like to delete the 02 at the
beginning of these text strings:
0210102009B
0210102008

An example of a trim function in an update query will
work also.

Thanks
 
C

Cheryl Fischer

Try ...

Mid([MyField], 3)

This will return the entire contents of your field beginning with the 3rd
character.
 
J

Jim/Chris

If you actually want to delete the two character then use
Cheryls example in an update query.

Jim
 

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