B
BruceF
I am using Access to create some reports, and I need to link to SQL tables.
I'm using DoCmd.TransferDatabase for the linking process. When I try to link
to one of the tables, a dialog box called Select Unique Record Identifier
pops up, and I have to choose a field(s) to be my primary key. How can I
program this so the primary key is selected automatically without a user
having to respond to this?
Here is the line of code that links to this table in case you need it:
DoCmd.TransferDatabase acLink, "ODBC", strCon, acTable, "AttendanceCode",
"dbo_AttendanceCode", , True
Thanks.
W
I'm using DoCmd.TransferDatabase for the linking process. When I try to link
to one of the tables, a dialog box called Select Unique Record Identifier
pops up, and I have to choose a field(s) to be my primary key. How can I
program this so the primary key is selected automatically without a user
having to respond to this?
Here is the line of code that links to this table in case you need it:
DoCmd.TransferDatabase acLink, "ODBC", strCon, acTable, "AttendanceCode",
"dbo_AttendanceCode", , True
Thanks.
W