convert excel import

P

Pat

Excel imports cells with numbers y=that begin with "0" by
stripping all the zeroes. How do I take a set of records
and convert to numbers with a zero in front?

For example: 101 to 0101

or 789500 to 00789500, etc.

Thanks,
 
S

Steve Schapel

Pat,

Depends whether you want them to continue to function as numbers or
not, i.e. sort according to numerical value, do calculations or other
data manipulation. If not, you can put a new text field in the table,
and run an Update Query to convert the value of the new field to
Format([YourNumberField],"00000000")

- Steve Schapel, Microsoft Access MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top