Hi all,
I am importing a text table into Access. I created an import specification and I am using a macro to automatically import this text into a table at various times throughout the day. I have a problem though, in that my text table does not have a field that I can designate as the primary key. I would like to be able to have my macro create an autonumber field and designate it as the primary key after it imports the table. Unfortunately, I haven't been able to figure out how to do this without human intervention. I want this to part of the macro, no input from me required.
If someone can help me with this, or if you have a better idea, I'd sure appreciate your input.
Thanks,
Eric
I am importing a text table into Access. I created an import specification and I am using a macro to automatically import this text into a table at various times throughout the day. I have a problem though, in that my text table does not have a field that I can designate as the primary key. I would like to be able to have my macro create an autonumber field and designate it as the primary key after it imports the table. Unfortunately, I haven't been able to figure out how to do this without human intervention. I want this to part of the macro, no input from me required.
If someone can help me with this, or if you have a better idea, I'd sure appreciate your input.
Thanks,
Eric