Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stripping first 2 characters from a field 1

Status
Not open for further replies.
Aug 9, 2006
17
GB
Hi,

I am using an Access 97 database and I have been asked to tidy one of the fields by removing the first 2 characters in the field if they are numeric. This is lightly beyond my limited sql expertise - is there any easy way to do this?

Many thanks.
 
Could try:

Code:
UPDATE Table1 Set Field1 = iif(IsNumeric(Left(Field1, 2)), Mid(Field1, 3), Field1)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top