Link from SQL server

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

I am linking to a table on an SQL server that I have no control over. I am
trying to automate my database. I can link to the table with this code:
DoCmd.TransferDatabase acLink, "ODBC Database", "ODBC;DRIVER=SQL
Server;SERVER=rssms2-7333-861;APP=Microsoft Access
Components;DATABASE=dbMARS;Trusted_Connection=Yes", acTable,
"dbo.ext_pln_007_02_ddg_data", "dbo_ext_pln_007_02_ddg_data", True
Every time I do this the next box that pops ud is the "Select Unique Record
Identifier". Does anyone know of a way to programmaticly select any or none
of the records so as the automation will not hang when it reaches this point?
 
Hi, Mike.

Do you need to edit or add to the table data? If the purpose is only to see
the data, a pass-thru query would do the job.
 
Back
Top