Guest_imported
New member
- Jan 1, 1970
- 0
- 0
- 0
Hi, I am trying to import Excel data into an access database, from a VB program. This code works:
msa.DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel8, "tblName", "bookname", True, sRange
but, if i have any zipcode fields in the Excel sheet, they come in as numbers, stripped of leading zeroes(a big problem in New Jersey, since there are many zipcodes with leading zeroes) This seems to be the case even when I format the zipcodes in Excel as text fields or ZipCode fields.
Any responses(including "too bad. can't do it. don't waste your time" would be greatly appreciated.
thank you
jim regan
jimregan79@hotmail.com
msa.DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel8, "tblName", "bookname", True, sRange
but, if i have any zipcode fields in the Excel sheet, they come in as numbers, stripped of leading zeroes(a big problem in New Jersey, since there are many zipcodes with leading zeroes) This seems to be the case even when I format the zipcodes in Excel as text fields or ZipCode fields.
Any responses(including "too bad. can't do it. don't waste your time" would be greatly appreciated.
thank you
jim regan
jimregan79@hotmail.com