RefreshLink Method (DAO.TableDef)

H

hans

Hi,

I link to SQL server tables from Access. On startup I
automatically set the ODBC DSN-less connections for each
table by setting the connect property for each one.

I then need to call the table.RefreshLink Method. Problem
is that as i do this I lose all primary key definitions
that were selected when linking the tables in the first
place.

Because of this, I now cannot add data to the tables, they
are basically read only.

Any ideas on how to avoid losing the primary key defs
when calling RefreshLink?

Thanks Hans
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top