I am getting the following error when I click on a command button.
Runtime error 3075
Syntax error (missing operator) in query expression "[jobinvoiceid]'=.
I have a main form "fmjob" with a subform "fmjobinvoi ce"
both are linked together by "jobId" and "jobinvoice id"
I have a command button with on the click handler:
Private Sub Command1158_Cli ck()
DoCmd.RunComman d acCmdSaveRecord
DoCmd.OpenRepor t "rptjobinvoice" , acViewPreview, , "[jobinvoiceid]=" & JobinvoiceID
End Sub
what I am trying to do is open up a report to view a specific record.
I have this in a few places in my DB on my main forms only not on the subforms and it works fine.
I have worked this a ton of different ways and can't seem to come up with the fix.
thanks for any suggestions.
Gary
Runtime error 3075
Syntax error (missing operator) in query expression "[jobinvoiceid]'=.
I have a main form "fmjob" with a subform "fmjobinvoi ce"
both are linked together by "jobId" and "jobinvoice id"
I have a command button with on the click handler:
Private Sub Command1158_Cli ck()
DoCmd.RunComman d acCmdSaveRecord
DoCmd.OpenRepor t "rptjobinvoice" , acViewPreview, , "[jobinvoiceid]=" & JobinvoiceID
End Sub
what I am trying to do is open up a report to view a specific record.
I have this in a few places in my DB on my main forms only not on the subforms and it works fine.
I have worked this a ton of different ways and can't seem to come up with the fix.
thanks for any suggestions.
Gary
Comment