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!

<B>Leading Zero Problem</B> 1

Status
Not open for further replies.

Dutt

Programmer
Aug 20, 2001
33
US
I'm importing data into an Access 2000 database from Excel 2000(comma delimiter Text File). The problem I'm having is that my field customer ID 0010002 when importin into access it chages it to 10002. I've tried ever datatype. If anybody knows anything that will keep the zeros let me know.

Thanks for the help!

Dutt
 
Hi!

After you import the data, if you go to the table and change the input mask to social security number, I think it will put in the leading zeros. At least it worked that way for me. If it doesn't work you can do an update query where you choose the field in question and in the update to put format([fieldname],"000000000").

hth
Jeff Bridgham
 
Thanks Jeff,

It seem to have worked great. Thanks I really appreciate it!

Dutt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top