Private Sub cmd_SendID_Click()
On Error GoTo Err_cmd_SendID_Click
Dim stDocName As String
Dim stLinkCriteria As String
stLinkCriteria = Me![SendID]
stLinkCriteria = "123" ' test purposes
stDocName = "frmCustomer"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_cmd_SendID_Click:
Exit Sub
Err_cmd_SendID_Click:
MsgBox Err.Description
Resume Exit_cmd_SendID_Click
End Sub
|