F
Fred Boer
Hello! I am in the process of implementing code which will allow the user to
relink my backend tables if they are moved or renamed. I am using code from
The Access Web (http://www.mvps.org/access/tables/tbl0009.htm and
http://www.mvps.org/access/api/api0001.htm). The code is working, however,
the *way* it is working is confusing me and I would love an explanation.
Ok..here goes:
I move the backend MDB to a new directory. The code pops up a messagebox
saying that the data tables aren't found and do I want to reconnect. Click
on "Yes". Another messagebox then pops up and asks if I want to "specify a
new path for the data tables".
1. If I click "Yes", I get a window within which I can browse to the back
end MDB. I select it, click "Open", and *all* the tables my application
needs are relinked.
2. If I click "No", I get a window within which I can browse to the back end
MDB. I select it, click "Open", and only *one* of the tables my application
needs are relinked. Then the window is displayed again. If I continue to
enter the name of the back end MDB over and over, eventually *all* of the
tables are relinked.
I have no doubt the code is functioning correctly; however, I don't
understand why it works differently if I choose to "specify a new path" or
not. Could someone explain?
Thanks!
Fred Boer
P.S. I have looked at the code, but it is complex enough to scare me! <g>
relink my backend tables if they are moved or renamed. I am using code from
The Access Web (http://www.mvps.org/access/tables/tbl0009.htm and
http://www.mvps.org/access/api/api0001.htm). The code is working, however,
the *way* it is working is confusing me and I would love an explanation.
Ok..here goes:
I move the backend MDB to a new directory. The code pops up a messagebox
saying that the data tables aren't found and do I want to reconnect. Click
on "Yes". Another messagebox then pops up and asks if I want to "specify a
new path for the data tables".
1. If I click "Yes", I get a window within which I can browse to the back
end MDB. I select it, click "Open", and *all* the tables my application
needs are relinked.
2. If I click "No", I get a window within which I can browse to the back end
MDB. I select it, click "Open", and only *one* of the tables my application
needs are relinked. Then the window is displayed again. If I continue to
enter the name of the back end MDB over and over, eventually *all* of the
tables are relinked.
I have no doubt the code is functioning correctly; however, I don't
understand why it works differently if I choose to "specify a new path" or
not. Could someone explain?
Thanks!
Fred Boer
P.S. I have looked at the code, but it is complex enough to scare me! <g>