roxannep
Technical User
- Jun 20, 2000
- 69
I'm trying to automate the import of an Excel table into my database.<br><br>I have it set up in a macro, with the<br>TransferSpreadsheet instruction, however, the piece that is missing and keeps hanging it up when testing is that when you run the Get External Data manually, one of the options that comes up is to allow Access to set the Primary Key Field. This is indeed how I want it done. When the remainder of the Wizard is run, the whole thing comes it beautifully allowing me to run several macros and action queries to disburse this data as I need to into a number of tables in the database.<br><br>In the TransferSpreadsheet macro instruction, however, there is no option to determine how the primary key is set, or to set one. This needs to happen or the import runs into an error and I cannot pull the data out using all the other instructions I've set up. <br><br>Any ideas on how to handle it?