C
Chris Mortimore
i am trying to write a procedure that will do the following...
1. Try to open the linked table called "Data" (ie, having a form with its
RecordSource set to "Data" and opening the form).
2. If opening "Data" fails, remove the link, ask the user to enter the path
of the database that holds "Data", make a new linked table and try step 1
again
3. When "Data" can be opened (ie, when the path is correct), save this link
in the mdb file so next time it'll try and open the same path (so if the
database gets moved to a different folder on the server, the new path only
needs to be entered once).
can somebody give me a hint on how to do this? i'm not too hot in the ways
of VBA.
thanks
1. Try to open the linked table called "Data" (ie, having a form with its
RecordSource set to "Data" and opening the form).
2. If opening "Data" fails, remove the link, ask the user to enter the path
of the database that holds "Data", make a new linked table and try step 1
again
3. When "Data" can be opened (ie, when the path is correct), save this link
in the mdb file so next time it'll try and open the same path (so if the
database gets moved to a different folder on the server, the new path only
needs to be entered once).
can somebody give me a hint on how to do this? i'm not too hot in the ways
of VBA.
thanks