hockey8837
Registered User.
- Local time
- Today, 07:56
- Joined
- Sep 16, 2009
- Messages
- 106
Hi,
I'm trying to create a form which filters a report based off of combo boxes selected by the user.
The code I'm using currently is:
This works great to return a report if the user selects something from the combo box. How do I adapt this so that the user can also leave the combo box blank and filter the report to return all records?
Additionally, what if I want to have the user filter between dates selected on the form; i.e. between 'txtStart' and 'txtEnd'
Thanks!
I'm trying to create a form which filters a report based off of combo boxes selected by the user.
The code I'm using currently is:
Code:
DoCmd.OpenReport "rptProgramAttendees", acViewReport, , "ProgramIDFK = " & cboProgramTitle
This works great to return a report if the user selects something from the combo box. How do I adapt this so that the user can also leave the combo box blank and filter the report to return all records?
Additionally, what if I want to have the user filter between dates selected on the form; i.e. between 'txtStart' and 'txtEnd'
Thanks!