Good morning! I have created a form that has a button to open the form record as a report; however, I am receiving a run-tim error of 3464: Data type mismatch in criteria expression. My code looks like this:
Private Sub cmdPrintRecord_Click()
Dim strReportName As String
Dim strCriteria As String
strReportName = "rptPrintRecord"
strCriteria = "[QuoteNo]='" & Me![QuoteNo] & "'"
DoCmd.OpenReport strrptPrintReport, acViewPreview, , strCriteria
End Sub
The error is highlighting the last line. Any ideas what may be the issue?
Thank you