Leading zeros are shown in Access?

G

Guest

I have set up a unique indexed number field. However, in data entry, no
leading zeros are shown. How do I make Access allow leading zeros?
 
K

Ken Snell [MVP]

Numeric fields do not store leading zeroes. The field must be of Text type
in order to store leading zeroes.
 
V

Van T. Dinh

Leading zeros belongs to the "Format" Property since numerically 00001 is
the same as 1 and only the value 1 is stored in a numeric Field.

Use the Format Propery of the Control (on the Form) or of the Field (in
DatasheetView of the Table / Query) to show the desiref format including
leading zeros.
 

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