Missing Leading Zero on records

  • Thread starter Denise Blum via AccessMonster.com
  • Start date
D

Denise Blum via AccessMonster.com

I am importing a deptid field ?0101? from an excel spreadsheet. When I
import it into the table in Access it loses the leading ?0?. How can I
create a query to ADD the ?0? back to the table record deptid.
 
F

fredg

I am importing a deptid field ?0101? from an excel spreadsheet. When I
import it into the table in Access it loses the leading ?0?. How can I
create a query to ADD the ?0? back to the table record deptid.

Access does not store leading zeros.
You can change the field datatype to Text, and update the field to add
leading zeros, but this can impact other aspects of your database.

I would suggest you simply format the field to display the leading
zeros. Set the control's Format property to:
0000
 

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