R
randria
Hello,
I have a query based report and the following code to open the report
Private Sub Ctl2doCmd_Click()
Dim strDoc As String
Dim strLink As String
strDoc = "2do"
strLink = " [Due Date] Between " & CLng(Me![Date3]) & " AND " &
CLng(Me![Date4])
DoCmd.OpenReport strDoc, acViewPreview, , strLink
I get the above error msg (Data type mismatch ) while [Due Date],[Date3] and
[Date4] have date data type.
Please help, what am I doing wrong ?
Many thanks.
I have a query based report and the following code to open the report
Private Sub Ctl2doCmd_Click()
Dim strDoc As String
Dim strLink As String
strDoc = "2do"
strLink = " [Due Date] Between " & CLng(Me![Date3]) & " AND " &
CLng(Me![Date4])
DoCmd.OpenReport strDoc, acViewPreview, , strLink
I get the above error msg (Data type mismatch ) while [Due Date],[Date3] and
[Date4] have date data type.
Please help, what am I doing wrong ?
Many thanks.