I writing a vba script to import an excel spreadsheet to an access database so the data can be reconciled to another system. The spreadsheet is created and maintained by another group, so I don't have the luxory of reformatting it.
I'm using the transferspreadsheet method, but when I do I've found that not all the data in the columns is formatted like the column itself. For example, there is a zip code column that is formatted as 'number' on the spreadsheet, but when I import it to access it blanks out 30 percent of the records data in that field because it interprets them as text.
Is there any way to format an import of a spreadsheet (through vba if possible) to take the data exactly as it shows on the sheet? If not, is there a way to format the spreadsheet all fields in each column are formated the same as the column itself?
I'm using the transferspreadsheet method, but when I do I've found that not all the data in the columns is formatted like the column itself. For example, there is a zip code column that is formatted as 'number' on the spreadsheet, but when I import it to access it blanks out 30 percent of the records data in that field because it interprets them as text.
Is there any way to format an import of a spreadsheet (through vba if possible) to take the data exactly as it shows on the sheet? If not, is there a way to format the spreadsheet all fields in each column are formated the same as the column itself?