number less than 1

steve111

Registered User.
Local time
Today, 20:45
Joined
Jan 30, 2014
Messages
429
hi

I am tying to put a number in a field
00001
but it keeps going to 1 how can I get 0001 in please

steve
 
Two ways:

1) You can make it a text field, and whatever you type will be stored.


2) You can ignore the fact that all the leading zeroes disappear and, when actually needed, format the field like so: Format([YourField], "00000")

Personally, I'd go with option 2.
 
I cannot have it as a text field
are you saying put this ([ncono],"0000)" in the form field ncono

steve
 
Last edited:
I cannot have it as a text field
are you saying put this ([ncono],"0000)" in the form field ncono

Keep it as a number field.

You only need Format it to 0000 when returning it in a query or binding it to a control on a form or report.

If you're entering directly into a table (heavens above!) then you can set the field's format property to 0000.
 

Users who are viewing this thread

Back
Top Bottom