N
Nai
The following error comes up when I click the command button. I am confused
as I created using the wizard
Syntax error (missing operator) in query expression '[Employer]'=' x '
Code is
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Survey responses"
stLinkCriteria = "'[Employer]'=" & "'" & Me '[Employer]' & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_cmdopenform_contact_to_suvey_result:
Exit Sub
Err_cmdopenform_contact_to_suvey_results_Click:
MsgBox Err.Description
Resume Exit_cmdopenform_contact_to_suvey_result
End Sub
as I created using the wizard
Syntax error (missing operator) in query expression '[Employer]'=' x '
Code is
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Survey responses"
stLinkCriteria = "'[Employer]'=" & "'" & Me '[Employer]' & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_cmdopenform_contact_to_suvey_result:
Exit Sub
Err_cmdopenform_contact_to_suvey_results_Click:
MsgBox Err.Description
Resume Exit_cmdopenform_contact_to_suvey_result
End Sub