hey can anyone please explain how to adjust the below code to open the specific order ID that has been double clicked? At the moment no matter which order is double clicked the same order is opened.
Private Sub OrderID_DblClick(Cancel As Integer)
On Error GoTo Err_OrderID_DblClick
Dim stDocName As String
stDocName = "Orders"
DoCmd.OpenForm stDocName
Exit_OrderID_DblClick:
Exit Sub
Err_OrderID_DblClick:
MsgBox Err.Description
Resume Exit_OrderID_DblClick
End Sub
Thanks in advance.
Private Sub OrderID_DblClick(Cancel As Integer)
On Error GoTo Err_OrderID_DblClick
Dim stDocName As String
stDocName = "Orders"
DoCmd.OpenForm stDocName
Exit_OrderID_DblClick:
Exit Sub
Err_OrderID_DblClick:
MsgBox Err.Description
Resume Exit_OrderID_DblClick
End Sub
Thanks in advance.