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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Don't Drop the Zero's

Status
Not open for further replies.

spudmizer

Technical User
Jul 25, 2002
35
US
We have assigned vendors numbers alphabetically so

A is allowed 0000001 - 0500000
B is allowed 0500001 - 1000000
ect.....

However when I enter it into the database it drops the all 0 infront of a number 1 or higher, so 0209301 shows up as 209301 which when sorted would put it with the letter "H"
so how do I tell it that the 0 MUST BE THERE !!!
 
You could just store it as text...?

There are two ways to write error-free programs; only the third one works.
 
If your values are numeric datatypes then all you have to do is set the format property for the Field in the Table to
0000000

That will give you the results you want.

Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top