> make a single change to that DSN in Control Panel to change
> what database it points at without changing a thing in your file.
That works well enough to be dangerous, but it is a bad idea
to depend on switching the contents of a DSN.
Since access stores table meta-data in the links, unless you
re-link your linked table may not match your target database
tables.
Also, Access copies data from the DSN into link. Updating
the DSN does not trigger an update of the link data. Unless
you re-link, the data in the link can get out of sink with the
data in the DSN. Occasionally you will find that you have changed
something in the DSN, but you are still connected to the old
database.
(david)
"Rick Brandt" <(E-Mail Removed)> wrote in message
news

8kUi.2699$(E-Mail Removed)...
> Joe Cletcher wrote:
> > My MS Access 2000 front-end is using an ODBC connection to a SQL
> > Server database. I have a production SQL Server database and a
> > development SQL Server database with separate ODBC connections. I
> > also have an Access front-end for each SQL Server database.
> >
> > When the development front-end is verified to be operating correctly,
> > I replace the production front-end with the development front-end and
> > must update to links from the development ODBC connection to the
> > production ODBC connection. There are many linked tables and I must
> > respond to a request for the new ODBC (production) connection.
> >
> > Is there a was to only have to provide the new ODBC source once. I
> > tried modifying the MSysObjects.Connection field value but the system
> > table is read only.
>
> See if the code at this link helps you...
> http://www.mvps.org/access/tables/tbl0010.htm
>
> BUT...in my opinion you are pushing your rope instead of pulling it. The
> biggest advantage of using an ODBC DSN is that you can make a single
change to
> that DSN in Control Panel to change what database it points at without
changing
> a thing in your file. That is what you should be doing.
>
> Just point the DSN on your development machine at the development SQL
Server
> database and when you are finished you simply distribute the file to your
users
> because that same DSN on their PC points at the live SQL Server.
>
> --
> Rick Brandt, Microsoft Access MVP
> Email (as appropriate) to...
> RBrandt at Hunter dot com
>
>
>