Adam McReynolds
Registered User.
- Local time
- Today, 14:04
- Joined
- Aug 6, 2012
- Messages
- 129
I have this code below which pulls a report based on the current date, I wanted to be able to pull the same report by entering between 2 dates as is done in a query using parameters. Thanks for any help.
P.S. If anyone also knows how to make a combo box with the months listed so they can pull this report by the month selected that would be awesome but is a side tangent. Thanks!
Code:
reworkWhere = "ReworkTech = '" & Me.txt_tech_by_date_techid & "' And ReworkTimeOut = Date()"
repairWhere = "RepairTech = '" & Me.txt_tech_by_date_techid & "' And RepairTimeOut = Date()"
qcWhere = "QC_Tech = '" & Me.txt_tech_by_date_techid & "' And QC_TimeOut = Date()"
strWhere = reworkWhere & " Or " & repairWhere & " Or " & qcWhere
DoCmd.OpenReport "RPT_RF_TECH_REPORT_UNIT_DAILY", acViewReport, , strWhere
P.S. If anyone also knows how to make a combo box with the months listed so they can pull this report by the month selected that would be awesome but is a side tangent. Thanks!