R
Rambo
Hi,
I am kind of new at access so i was hoping someone might be able to
help out with this question. I am setting up a database for my company
and want to be able to display progress reports for employees. Right
now I have it set up where I press the "Preview report" and all of the
reports for a particular employee come up, however, I would just like
it to display the report for that particular day. The code that I have
typed for the "Preview Report" button is below
Private Sub cmdPreviewRecord_Click()
Dim strReportName As String
Dim strCriteria As String
strReportName = "rptProgressReport"
strCriteria = " [strEmployeeID] =' " & Me![strEmployeeID] & " ' "
DoCmd.OpenReport strReportName, acViewPreview, ,strCriteria
End Sub
My date field is named "dtmDateofProgress"
Any help on the issue would be greatly appreciated. Thanks
Sincerely,
Rambo
I am kind of new at access so i was hoping someone might be able to
help out with this question. I am setting up a database for my company
and want to be able to display progress reports for employees. Right
now I have it set up where I press the "Preview report" and all of the
reports for a particular employee come up, however, I would just like
it to display the report for that particular day. The code that I have
typed for the "Preview Report" button is below
Private Sub cmdPreviewRecord_Click()
Dim strReportName As String
Dim strCriteria As String
strReportName = "rptProgressReport"
strCriteria = " [strEmployeeID] =' " & Me![strEmployeeID] & " ' "
DoCmd.OpenReport strReportName, acViewPreview, ,strCriteria
End Sub
My date field is named "dtmDateofProgress"
Any help on the issue would be greatly appreciated. Thanks
Sincerely,
Rambo