Hello. I am trying to figure out how to automate a process where a user is importing a spreadsheet into Access. I would be doing fine except that a single field in the Excel file changes every day (it contains the date of the file). I need to merge this data into an existing table without rebuilding the append query every day (like I'm doing now).
One idea I had was to switch off the "First Row Contains Column Headings" flag but then Access requires that the data go into a new table. I guess I could import to a new table each time then have a query that appends the records in that table to my accumulation table. I would have to delete the first row since it contains field names, not actual data.
My ideal scenario would be to be able to control the import process so that I could rename the incoming variable column name on the fly. It seems Access doesn't want us to have much control when Excel is the source. If my source was a TXT file, I could use an input spec to deal with this.
Has anyone had any interesting solutions to a problem like this? Any ideas would be appreciated. Thank you!
Troy
One idea I had was to switch off the "First Row Contains Column Headings" flag but then Access requires that the data go into a new table. I guess I could import to a new table each time then have a query that appends the records in that table to my accumulation table. I would have to delete the first row since it contains field names, not actual data.
My ideal scenario would be to be able to control the import process so that I could rename the incoming variable column name on the fly. It seems Access doesn't want us to have much control when Excel is the source. If my source was a TXT file, I could use an input spec to deal with this.
Has anyone had any interesting solutions to a problem like this? Any ideas would be appreciated. Thank you!
Troy