Hi Sandy,
Don't you just hate it when Access does that? I sure do... it's nasty when it does that to phone numbers that are in three columns... 800 555 0025 becomes 800 555 25. Not to mention ruining invoice numbers that are commonly padded with leading 0'; then they don't match the contents of another table you are trying to join with them.
I haven't found an easy way to get Access to 'do the right thing' excepting to create a table that is all text fields with the same headers as the Excel sheet, import to that table, then append the data from that table to the target. As long as you are importing to a new table or linking - it's a problem.
On the other hand, if your leading zeros column is fixed length (always five digits or whatever) then you can reapply the padding this way.
To display a padded result Expr1:Right("00000" & [myleadingzerofield], 5)
or
you can update the column by setting the myleadingzerofield = Right("00000" & [myleadingzerofield], 5)
What this does - takes your field contents, using your example, it would be 1 - and inserts five zero's in front of it, so that it looks like 000001. However, that is too many digits, we only want 5 so what we do is we take our 5 digits from the right hand edge, giving us 00001. If the field value was 25, then we would have 00025, and so forth.
Hope this helps...
Gordon