Figuring out vba code for "Link to Database"

M

Mikhail

Hi,

I have a visio drawing that's linked to a database using the database
wizard, but every time I open the document I have to re-link to the database
(find it, point to the location, etc). I'm trying to write a vba macro to do
this automatically, but the macro recorder doesn't seem to record the link to
database code.

Do you guys know how I might do this?

Thanks.
 
D

David Parker [Visio MVP]

Are you using a saved DSN or just the MS Excel or MS Access temporary ones?
You need to create named DSNs for your purposes.
 
M

Mikhail

I was using the temporary ones, but I just created a permanent one and still
can't figure out how to get it to work...

Please advise. Thanks a lot.
 

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