Leading zero's????

B

Bob

Is there an easy way of displaying leading 0's to numbers
in a report??

For instance: 00042

In excel I can put an apostrophe in the cell and it will
display all the 0's.

Thanks in advance for your help!!
 
C

Cheryl Fischer

You can use the format function:

Format([MyNumberField], "00000")

If the value of MyNumberField is 42, the function will return 00042; if the
value is 376, the function will return 00376, etc.
 
B

Bob

Thank You!!
-----Original Message-----
You can use the format function:

Format([MyNumberField], "00000")

If the value of MyNumberField is 42, the function will return 00042; if the
value is 376, the function will return 00376, etc.

--

Cheryl Fischer, MVP Microsoft Access



Is there an easy way of displaying leading 0's to numbers
in a report??

For instance: 00042

In excel I can put an apostrophe in the cell and it will
display all the 0's.

Thanks in advance for your help!!


.
 

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