R
ReportSmith
This is probably simple, but once again, I'm stuck.
I have an Excel file that I have imported into an Access table (via VBA). I
now would like to make one of the imported fields a primary key in the new
table (again, using VBA). I know how to do it via the import wizard ("Choose
my own primary key.")
Once the variables were declared/defined, I used the following:
DoCmd.TransferSpreadsheet acImport, 8, "Original", ClientFileFolder &
ClientFile, True, ""
....to import into a new table, called "Original". I now need to make one of
the fields a PK.
Any help is greatly appreciated.
I have an Excel file that I have imported into an Access table (via VBA). I
now would like to make one of the imported fields a primary key in the new
table (again, using VBA). I know how to do it via the import wizard ("Choose
my own primary key.")
Once the variables were declared/defined, I used the following:
DoCmd.TransferSpreadsheet acImport, 8, "Original", ClientFileFolder &
ClientFile, True, ""
....to import into a new table, called "Original". I now need to make one of
the fields a PK.
Any help is greatly appreciated.