I have a subform that I use to list some items. On that subform I made the OnClick property below:
It doesn't work though, and instead gives me a dialog box asking for txtSARID.
txtSARID is the name of the control on frmSAR.
ctlSARID is the name of the control on the subform.
I am trying to open frmSAR and have it open to the correct record.
The command filters fine if I only have:
Code:
DoCmd.OpenForm "frmSAR", , , "CaseNum= '" & CaseNum & "'" & " AND " & "ctlSARID = '" & txtSARID & "'"
txtSARID is the name of the control on frmSAR.
ctlSARID is the name of the control on the subform.
I am trying to open frmSAR and have it open to the correct record.
The command filters fine if I only have:
Code:
DoCmd.OpenForm "frmSAR", , , "CaseNum= '" & CaseNum & "'"