I use a TransferDatabase code to automate importing SQL tables into external backend Access databases...
When I did the import manually, the primary key remained. Now there is no primary key... I assume ALL indexes are removed.
I need the PK for some of my other queries and actions... How do I automatically reassign these PKs to my tables?
McLean Jones
buddycenters.org
"Believing is Seeing
Code:
DoCmd.TransferDatabase acImport, "ODBC Database", _
"ODBC;DSN=eProj;UID=EProjUser;PWD=EPr0jUs3r;LANGUAGE=us_english;" _
& "DATABASE=eProjRpt", acTable, "dbo.TaskAssignment", "dbo_TaskAssignment"
When I did the import manually, the primary key remained. Now there is no primary key... I assume ALL indexes are removed.
I need the PK for some of my other queries and actions... How do I automatically reassign these PKs to my tables?
McLean Jones
buddycenters.org
"Believing is Seeing