K
KarenH
I have an Excel spreadsheet that contains a date field entered in six digit
format, for example 063006, 043006, and so on. I need to convert it to a
csv file and then import it into an Access table. It is formated as text,
and entered with all six digits. After conversion, the CSV file shows it in
six-digit format.
However, after a transfertext in VBA, it ends up dropping the leading zero,
end displays as 63006 and 43006. I have even tried using an import spec and
the same thing happens.
If I manually do an "Import", it comes in fine.
The code I'm using to do the transfer is:
DoCmd.TransferText acImportDelim, , "disburse", "DisbursementsFile", True
Any help would be appreciated. Thanks
format, for example 063006, 043006, and so on. I need to convert it to a
csv file and then import it into an Access table. It is formated as text,
and entered with all six digits. After conversion, the CSV file shows it in
six-digit format.
However, after a transfertext in VBA, it ends up dropping the leading zero,
end displays as 63006 and 43006. I have even tried using an import spec and
the same thing happens.
If I manually do an "Import", it comes in fine.
The code I'm using to do the transfer is:
DoCmd.TransferText acImportDelim, , "disburse", "DisbursementsFile", True
Any help would be appreciated. Thanks