Disappearing Zero "0" value (1 Viewer)

brodaman

Registered User.
Local time
Today, 13:46
Joined
Nov 23, 2015
Messages
25
Good day, Am having issue with all Zero value starting account numbers while entering them.
Where do I make my setting to retain the zero value.

Thanks.
 

Gasman

Enthusiastic Amateur
Local time
Today, 12:46
Joined
Sep 21, 2011
Messages
14,597
Good day, Am having issue with all Zero value starting account numbers while entering them.
Where do I make my setting to retain the zero value.

Thanks.

Use the Format property of the textbox that holds the account numbers, so 00000000 would be for 8 digit account numbers.
 

moke123

AWF VIP
Local time
Today, 07:46
Joined
Jan 11, 2013
Messages
4,020
i believe if its a numerical datatype the leading zero is removed. if its text datatype it wont be. so unless your doing any math or sorting with it I would change it to text. note that text and numbers sort differently.
 

gemma-the-husky

Super Moderator
Staff member
Local time
Today, 12:46
Joined
Sep 12, 2006
Messages
15,744
if you want leading zeroes, then it makes sense for the account to be "text" rather than number, even if the value is numeric.

I would make all account numbers a constant length to avoid sorting issues.

To be honest though, a numeric key would work as well, and an autonumber would be fine as well.
 

brodaman

Registered User.
Local time
Today, 13:46
Joined
Nov 23, 2015
Messages
25
Use the Format property of the textbox that holds the account numbers, so 00000000 would be for 8 digit account numbers.

I simply dont understand please buttress: rolleyes:
 

brodaman

Registered User.
Local time
Today, 13:46
Joined
Nov 23, 2015
Messages
25
i believe if its a numerical datatype the leading zero is removed. if its text datatype it wont be. so unless your doing any math or sorting with it I would change it to text. note that text and numbers sort differently.

Have tried using text datatype which actually retain the Zero values but messed
my sorting...........any other way please
 

Minty

AWF VIP
Local time
Today, 12:46
Joined
Jul 26, 2013
Messages
10,382
On your table in design view , in the format section put in 00000 or as many digits as you need to have displayed.
 

gemma-the-husky

Super Moderator
Staff member
Local time
Today, 12:46
Joined
Sep 12, 2006
Messages
15,744
Have tried using text datatype which actually retain the Zero values but messed
my sorting...........any other way please

how does it mess up your sorting?

are you using a fixed length code?
If not, how will you distinguish between these 2

00A
000A
 

Users who are viewing this thread

Top Bottom