P
PBuller
I have a multi-user database over a LAN, it runs fast on the host computer.
It is very slow over the LAN unless the Host computer has the Database open.
Then it runs like a dream.
I believe I have an issue with the way I open the database.
I use the following code in each of my forms: (that manipulates data)
Private Sub IBidder_AfterUpdate()
Dim wsp As Workspace
Dim Db As Database
Dim rsbid As Recordset
Set wsp = DBEngine.Workspaces(0)
Set db = wsp.OpenDatabse (datalocation)
Set rsbid = db.OpenRecordset("bidders")
With rsbid
** Code to manipulate the data
End with
rsbid.Close
Set db = Nothing
End Sub
It is very slow over the LAN unless the Host computer has the Database open.
Then it runs like a dream.
I believe I have an issue with the way I open the database.
I use the following code in each of my forms: (that manipulates data)
Private Sub IBidder_AfterUpdate()
Dim wsp As Workspace
Dim Db As Database
Dim rsbid As Recordset
Set wsp = DBEngine.Workspaces(0)
Set db = wsp.OpenDatabse (datalocation)
Set rsbid = db.OpenRecordset("bidders")
With rsbid
** Code to manipulate the data
End with
rsbid.Close
Set db = Nothing
End Sub