change link address with vba

G

Guest

Using Access 2003 on XP. I have created a frontend/backend application that
will likely be installed on a network. The user will save the backend to a
network location (which I will not know the address of beforehand). I would
like a way to programmatically ask the user when they open the frontend where
the backend is located, and update the linked tables accordingly. A windows
explorer type dialog box would be ideal, simply navigating to the backend.
Is this possible? Thanks in advance.

Adam Milligan
 
A

Allen Browne

Download Microsoft's sample database - solutions.mdb - from:
http://support.microsoft.com/kb/248674

There's a module in the database that does what you want. Checks the back
end on start up. If it's not present, it pops up the FileOpen dialog for the
user to locate it.
 
G

Guest

Or, what I do is hold the location info in an INI file held in the same
directory as the application, and on opening up the firs form, reading the
INI file and attempt a reconnection at that point.

This means the user dosn't have to know where the data is located, and if
you decide to upsize to SQL server, you can enter the ODBC connection string
instead

HTH
Chris
 

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