Private Sub Command68_Click()
On Error GoTo Err_Command68_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frm_customer_enquiry"
stLinkCriteria = "[customer_id]=" & Me![tbl_customer_customer_id]
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Command68_Click:
Exit Sub
Err_Command68_Click:
MsgBox Err.Description
Resume Exit_Command68_Click
End Sub
|