Link to home
Start Free TrialLog in
Avatar of FredFive
FredFive

asked on

Importing data from Excel 2007 to Access 2007 - dropping leading zeros in text field

I'm trying to import Excel 2007 data into Access 2007 - one of the fields requires leading zeros.  The import data shows the leading zeros in a text field.  Access is also defined as a text field and is dropping the leading zeros.  This process worked fine with Office 2003 software.

I have tried to format the text field in Access.  I can type in the leading zeros or do a replace which saves the leading zeros, however, Acess deletes the leading zeros when imported.

Example:
Excel data = 00055239
Import to Access = 55239
ASKER CERTIFIED SOLUTION
Avatar of OdeMonkey
OdeMonkey
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of FredFive
FredFive

ASKER

The Excel data does not have appostrophes.  Both Excel and Access fields are defined as text.

Example:
Excel data = 00055239
Import to Access = 55239
SOLUTION
Avatar of Jeffrey Coachman
Jeffrey Coachman
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial