Hello, sorry to chime in but I have a similar issue. The be is stored on a remote server. Each user has their own front end. There's only 3 users. I tried the persistent connection trick but it actually resulted in worse performance.
Hi SARK666,
Sorry, I just saw your reply, when I decided to return to this thread. For whatever reason, I did not receive a notification email when you, Simon or Rx posted back.
I have never witnessed a persistent connection causing a degradation in performance. How exactly did you implement your persistent connection attempt? Please be specific, explaining in detail.
Also, by "remote server", are we talking WAN (Wide Area Network)? If so, JET was simply not designed to be used in this environment; if this is what you have, then quite frankly you are risking serious corruption to your data. See this article, by Access MVP Albert Kallal, for more details:
Using a wan with ms-access? How fast, how far?
http://www.kallal.ca/Wan/Wans.html
Here's what I experience without the persistent connection trick:
This database is built to record absences, without the persistent connection, an ldb file is only created when a user goes into the record absences form, not the main menu.
This behavior is consistent with an
unbound main menu form. Does your main menu have a Recordsource (ie. bound form), or no Recordsource (unbound form)?
1st user logs in and goes to record absences, ldb file is now created, it's fast.
2nd user logs in and goes to record absences, it's now slow for both.
2nd user logs out, it's still slow for the first user. (why??)
Don't really know offhand, but one of the first things worth checking is that all users have the same service packs installed, for Windows, Office and the JET database engine. To one copy of the FE application file: Delete all linked tables, compact the FE application (hold down the <shift> key to bypass any startup routines, and then re-create the linked tables from scratch (instead of simply refreshing them). Also, make sure any code compiles without errors. Then distribute this FE file, with the newly linked tables, to your other users.
... Disabled auto-connect, backend db is at root, db names are <= 8 characters.
Did you mean Disabled Name Auto Correct?
So in desperation I was looking for a way to always delete the ldb file.
I think you are barking up the wrong tree. This simply should not be necessary. I do not advise attempting to delete the locking database file, unless it remains after the last user has closed the application. If that is the case, this signals possible corruption of your database.
....does a subsequent write happen to the ldb file even though it's the same user? I'm wondering if a second write attempt to the ldb file is causing my issue, that's why I want it gone/recreated after each query etc/
Really doubtful. You might (?) get additional writes, from the same user, as they edit records. After all, the purpose of the Locking Database file is to track which user is editing which record, so that two users don't step on each other editing the same record.