R
Rambo
Hi,
For the following line of code I keep getting a mismatch error and I am
not sure why
I am trying to set up a button so that it previews a progress report
based on two criteria, an employee ID and a date. Currently on_Click
of my "Preview Report" button I have the following code
Private Sub cmdPreviewRecord_Click()
Dim strReportName As String
Dim strCriteria As String
str ReportName = "rptProgressReport"
strCriteria = "[strEmployeeID] = ' " & Me![strEmployeeID] & " ' "
and
"[dtmDateofProgress] = ' " & Me![dtmDateofProgress] & " ' "
DoCmd.OpenReport strReportName, acViewPreview, ,strCriteria
where [strEmployeeID] is my employee id field and [dtmDateofProgress]
is my date field
Can anyone help out?
Thanks so much.
Sincerely,
Rambo
For the following line of code I keep getting a mismatch error and I am
not sure why
I am trying to set up a button so that it previews a progress report
based on two criteria, an employee ID and a date. Currently on_Click
of my "Preview Report" button I have the following code
Private Sub cmdPreviewRecord_Click()
Dim strReportName As String
Dim strCriteria As String
str ReportName = "rptProgressReport"
strCriteria = "[strEmployeeID] = ' " & Me![strEmployeeID] & " ' "
and
"[dtmDateofProgress] = ' " & Me![dtmDateofProgress] & " ' "
DoCmd.OpenReport strReportName, acViewPreview, ,strCriteria
where [strEmployeeID] is my employee id field and [dtmDateofProgress]
is my date field
Can anyone help out?
Thanks so much.
Sincerely,
Rambo