P
PatK
I am importing Excel Data into an Access Table. The excel file, however, has
many columns I do not need which greatly increase the size of my Access DB.
I am using the DoCmd.TransferSpreadsheet method to get the data into Access.
I cannot change the source excel file.
I am thinking the simplest approach is to simply import all the columns, and
then "drop" those columns I do not want (I then will do some other processing
to clean up other aspects of the imported data).
Note:
- The table I am importing to initially contains all the columns, even those
I do not want, to make the transfer/import easy. I cannot change the source
excel file (else I might delete the columns before import, but would prefer
to manage everything from Access).
- After I process the imported data, I then merge the data into a different
table, and then delete all rows in the import table (ie, the import table is
only a temporary holding location) in preparation for the next cycle of
importing.
Any ideas how to dynamically change the table structure, by dropping the
imported columns?
Pat
-
many columns I do not need which greatly increase the size of my Access DB.
I am using the DoCmd.TransferSpreadsheet method to get the data into Access.
I cannot change the source excel file.
I am thinking the simplest approach is to simply import all the columns, and
then "drop" those columns I do not want (I then will do some other processing
to clean up other aspects of the imported data).
Note:
- The table I am importing to initially contains all the columns, even those
I do not want, to make the transfer/import easy. I cannot change the source
excel file (else I might delete the columns before import, but would prefer
to manage everything from Access).
- After I process the imported data, I then merge the data into a different
table, and then delete all rows in the import table (ie, the import table is
only a temporary holding location) in preparation for the next cycle of
importing.
Any ideas how to dynamically change the table structure, by dropping the
imported columns?
Pat
-