ok I am going to try and explain this
I have a form (Form1) that has about 50 Option buttons.
These option buttons control combo boxes that are located on Form2. When a combo box is activated it needs to filter data in a query. This query is used to generate a report. Now if only one combo is active it is no problem since I can just use a filter for that situation (i.e. If combo1 is active then apply filter1, I put this in the onopen field of the report and the filter is done with a macro), but if multiple combo boxes are active and I need to apply multiple filters to the query then we have a problem. If I use the above idea then only the last If statement that is true will be applied how should I go about doing this?? I have tried creating a query for each combo, then filtering each individual query and doing a join, but when I put the if statement in the onopen part of the report it would give me an error that basically said you could only filter the reports underlying query which I have to set to the Joined query not the individual ones for the combos.
Well trying to explain this is very confusing, but any help would be much appreciated
I am pretty familiar with Access but have very little VBA experience
I have a form (Form1) that has about 50 Option buttons.
These option buttons control combo boxes that are located on Form2. When a combo box is activated it needs to filter data in a query. This query is used to generate a report. Now if only one combo is active it is no problem since I can just use a filter for that situation (i.e. If combo1 is active then apply filter1, I put this in the onopen field of the report and the filter is done with a macro), but if multiple combo boxes are active and I need to apply multiple filters to the query then we have a problem. If I use the above idea then only the last If statement that is true will be applied how should I go about doing this?? I have tried creating a query for each combo, then filtering each individual query and doing a join, but when I put the if statement in the onopen part of the report it would give me an error that basically said you could only filter the reports underlying query which I have to set to the Joined query not the individual ones for the combos.
Well trying to explain this is very confusing, but any help would be much appreciated
I am pretty familiar with Access but have very little VBA experience