Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why do I get decimals instead of zeros?

Status
Not open for further replies.

kgrift

MIS
Sep 9, 2002
1
US
I try to type in a number such as 035287987 and access records the number as 35287987.

Why does this happen? I want it to record the leading zero and NOT include decimals at all.

I have the field formatted as text with a length of 9

Thanks
 
The only thing I can think of is: the field you write to in the table is of type numeric. It's impossible to write leading zero's to a numeric field. Access probably translates your input (from a form?) to a valid long integer.

Do you have access to the table? If so, check the field type. change it to 'text'. If it's OK that you store these numbers as text with a leading zero.

Good luck, Bart Verlaan.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top