Everybody is a complicated person. ;-)
This was the problem (a respond to Tony Toews input - but no one else
answered) (BTW, some people do not respond in this newsgroup and it's quite
difficult to find all posts...):
It didn't seem to have an effect. Instead, it took very long to run the
program from another machine if different station has run it as well.
I had a persistent connection based on an empty recordset. Some programmers
say I might have create a persistent connection just by initializing db
variable pointing to the back end. I tried persistent connection according
to
http://www.granite.ab.ca/access/performanceldblocking.htm:
Public rsAlwaysOpen As Recordset
Private Sub Form_Close()
rsAlwaysOpen.Close
Set rsAlwaysOpen = Nothing
End Sub
Private Sub Form_Open(Cancel As Integer)
Set rsAlwaysOpen = CurrentDb.OpenRecordset("DummyTable")
End Sub
I didn't try David Fenton's Global database connection as described on the
web page. Here are the steps how I did it:
StartUp Form = frm_Main
On Form_Open
1) First action: check connections to shared BE database within a "For Each
tbl In CurrentDb.TableDefs" cycle:
If any connection failed (ie. BE MDB couldn't be found, eg. after a FE
upgrade) there was "Exit For", and a procedure to re-create connections was
run.
2) Set rsVzdy = CurrentDb.OpenRecordset("VZDY") 'open persistent connection
Table VZDY was a table in main shared BE MDB.
3) Initiate main MDB's parameter tables (if run for the first time).
4) Initiate local BE MDBs.
5) Initiate frm_Main (dashboard). There are many actions on shared BE MDB,
eg. reading from parameter tables, etc.
On Form_Close
1) Write some settings to Win registry and to INI-file.
2) Set rsVzdy = Nothing 'close persistent connection
3) Write to a log file (pure TXT file).
4) Compress local BD MDBs.
5) Last user of main BE MDB: backup main MDB.
It's all A97, Czech version. I believe there are no (Jet) DB issues
associated with A97 language versions.
According to some comments (Albert Kallal, David Fenton, ...) I did
something wrong, but I don't know what. :-/
Pls, respond if you have any idea. At the moment we don't use persistent
connection at all. Instead we do some registry tricks, see
http://support.microsoft.com/kb/150384/ and the program performance is
superb! What do you think: should I go back and try persistent connection
once again? ;-)