Hi folks
I have just created an input form to collect the date criteria for a Monthly report. I've used DateSerial function as I only need to collect the Month and year.
I'm working on a new report now and would like to ask for some help.
This report will have multiple filters. For example
Date from & to txtboxes
Project name
Project Code
The problem I have is that the technique I've used in the past does not allow for any of the filters to be empty. It comes back with an error and doesn't display any records.
Sometimes this will be the case. For example I might only want to find records using the Project code filter and this will mean leaving the other filters empy. In other cases I might just want the Dates and the Project Name
Does anyone know the best way to create this kind of filter? I'm sure there is several ways. Unforunately my knowledge of VBA and SQL is quite limited at the moment.
Any help would be great
I have just created an input form to collect the date criteria for a Monthly report. I've used DateSerial function as I only need to collect the Month and year.
I'm working on a new report now and would like to ask for some help.
This report will have multiple filters. For example
Date from & to txtboxes
Project name
Project Code
The problem I have is that the technique I've used in the past does not allow for any of the filters to be empty. It comes back with an error and doesn't display any records.
Sometimes this will be the case. For example I might only want to find records using the Project code filter and this will mean leaving the other filters empy. In other cases I might just want the Dates and the Project Name
Does anyone know the best way to create this kind of filter? I'm sure there is several ways. Unforunately my knowledge of VBA and SQL is quite limited at the moment.
Any help would be great
Last edited: