N
newtec_54
Hi, I downloaded this page from the Microsoft help page and wrote it into the
code for the command button as instructed. When I click on the print button I
get this error message;
Run-time error '3464'
Data type mismatch in criteria expression.
The event procedure is this:
Private Sub cmdPrintRecord_click
Dim strReportName As String
Dim strCriteria As string
StrReportName ="rptPrintRecord"
strCriteria = "[ApplicationID]='" & Me![ApplicationID] & "'"
DoCmd.OpenReport strReportName, acViewPreview, , strCriteria
End Sub
When I run debug DoCmd line is highlighted.
Can anyone enlighten me to the cause and give a solution?
code for the command button as instructed. When I click on the print button I
get this error message;
Run-time error '3464'
Data type mismatch in criteria expression.
The event procedure is this:
Private Sub cmdPrintRecord_click
Dim strReportName As String
Dim strCriteria As string
StrReportName ="rptPrintRecord"
strCriteria = "[ApplicationID]='" & Me![ApplicationID] & "'"
DoCmd.OpenReport strReportName, acViewPreview, , strCriteria
End Sub
When I run debug DoCmd line is highlighted.
Can anyone enlighten me to the cause and give a solution?