How to remove leading characters in a text field?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

If have a database that is created by importing a delimited text file.
Some of the text fields in the text file are padded out by using leading
zeros.
Once I have the data in an Access table, how can I strip the leading zeros
away to leave me with the data I actually need?
 
Use the Val function in an update query to easily do this:

UPDATE TableName
SET TextFieldName = CStr(Val([TextFieldName]);
 

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

Back
Top