put 0 in front of number field

  • Thread starter Thread starter dlb1228
  • Start date Start date
D

dlb1228

i have a number field like the following:
125645
1236544
54623211
125487
i want the field to be 10 positions with zeros in front how do i make
this field like this?
0000125645
0001236544
0054623211
 
A number field can not. A text field can or a text box displaying a number
field by formatting.
 
You can format it in the query:
AliasName: Format([MyField], "0000000000")

But, the data type will be text.
It is slower to execute than without the formatting.
It is better to put the formatting on the report or form.
The above technique is, however, good for exporting formatted data to Excel
 

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