Hi, I have a form which shows summary information about orders placed. There are a number of drop-down combos at the top of the form which allows user to filter the data. Beside each record in the summary is a "Details" button which allows the user to open a form and view the full info about the order.
The problem is Access seems very slow in bringing up the "Details" record. On my local machine it takes about 3 seconds, worse still, on the customers’ network it takes about 5 seconds. Is there any way to speed up the retrieval time?
It’s an Access 2000 database
Heres the code behind the click event for the Details button:
Private Sub cmdOpenDetails_Click()
On Error GoTo Err_cmdOpenDetails_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmOrderDetails"
stLinkCriteria = "[tblOrders.OrderNo]=" & Me![OrderNo]
DoCmd.OpenForm stDocName, , , stLinkCriteria, acFormEdit
Forms("frmOrderDetails").AllowAdditions = False
Exit_cmdOpenDetails_Click:
Exit Sub
Err_cmdOpenDetails_Click:
MsgBox Err.Description
Resume Exit_cmdOpenDetails_Click
End Sub
The problem is Access seems very slow in bringing up the "Details" record. On my local machine it takes about 3 seconds, worse still, on the customers’ network it takes about 5 seconds. Is there any way to speed up the retrieval time?
It’s an Access 2000 database
Heres the code behind the click event for the Details button:
Private Sub cmdOpenDetails_Click()
On Error GoTo Err_cmdOpenDetails_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmOrderDetails"
stLinkCriteria = "[tblOrders.OrderNo]=" & Me![OrderNo]
DoCmd.OpenForm stDocName, , , stLinkCriteria, acFormEdit
Forms("frmOrderDetails").AllowAdditions = False
Exit_cmdOpenDetails_Click:
Exit Sub
Err_cmdOpenDetails_Click:
MsgBox Err.Description
Resume Exit_cmdOpenDetails_Click
End Sub