Changing connection details

  • Thread starter Thread starter Nocky35
  • Start date Start date
N

Nocky35

Hi, I am currently having to change a number of connection details fo
queries, I need to have some VBA code that I can run macros to find th
existing connection details, and change them to the new one
automatically, without me having to recreate the queries.

Can anyone help?

Cheer
 
if querytables, then check the connection property. You would have to parse
the string and make the changes, then assign it back.
 
Hi, i've managed to get it to change everything, but I only want it t
change the DSN, UID and DBQ.

If someone knows how to just display the dsn part of the connectio
property, then I can work it out from there...

Anyone got any ideas on what the rest does?

ODBC;DSN=###;UID=###;;DBQ=###;DBA=W;APA=T;EXC=F;FEN=T;QTO=T;FRC=10;FDL=10;LOB=T;RST=T;GDE=F;FRL=F;BAM=IfAllSuccessful;MTS=F;MDI=F;CSR=F;FWC=F;PFC=10;TLO=0
 

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

Back
Top