I've noticed this before. If ANY user is in the BE database, then you
attempt to relink tables on another machine to the BE, you'll notice the
extreme slowness. I believe Access needs to get locks on the tables to
refresh the links, and there is a major delay if the tables are opened by
another user (not so if no one else is in the BE database).
Couple of work-arounds:
1) When you are compiling an .mde, make sure the tables are already linked
to the same database they will be connecting to (if possible). Then when you
distribute the .mde to each machine, the program is already linked to the
proper location.
2) If # 1 is not possible, make sure to NOT relink the tables each time the
program starts, but only if you determine that relinking is necessary (see
code sample below), such as the linked table database is no longer valid,
etc.
Even with #2 above, one person at that location could launch the program to
relink to the back-end, then distribute his/her .mde to all other pc's (the
..mde would now be correctly linked). If you had the code put in that would
only relink if the current links were invalid, this would solve the issue,
as the program they save would already be linked to the proper BE.
Here's an example of a check in your relinking code where you only refresh
if the link is not valid:
(you could test one table's link and see if it's correct, and set the proper
path to variable: datapath)
If MyTable.Connect <";DATABASE=" & datapath Then
MyTable.Connect = ";DATABASE=" & datapath
MyTable.RefreshLink
End If
Hope this makes sense,
Andy
"Mike" <in**@baltworld.comwrote in message
news:41**********************************@c36g2000 prc.googlegroups.com...
>I have a multiuser access database to which I have split into fe &
be. The system refreshes the links at each log-on between the fe & be
automatically via code.
PROBLEM:
Locally it runs perfectly... in the client server setting the re-
linking is extremely slow...
DETIALS:
FE: 80MB
BE: 30MB
#of Tables... 120
time to load locally 5-10 seconds..
time to load via netword 5-7 Minutes
SubDataSheets - Set to [NONE]
Any help would be appreciated.