I have a subreport on a report. The end user clicks on a cmd button on a form to open the report. The report is based on a query with a date criteria that is on the form. I am also using a function to filter data on 2 separate option button groups.
My code is simple: domcd.openreport "rptname", acviewpreview, , GetParameters()
My code for GetParameters is more complex but the end result is correct for both the report & subreport if opened independly. In other words the report is filtered correctly and so is the subreport - but when the subreport is on the report it is not filtered correctly.
I have the used the docmd.openreport to see my subreport & it is correct and then my report opens & the subreport is not filtered. ? I tried to save the subreport & it saves with out the filter.....
The end user is tring to print a report that shows:
data with a date, product shift, & product line filter. Each of these with the availabilty of selecting all if wanted. example: data for 9/1/09 for shift 1 on product line 4 or data for 9/1/09 for all shifts on product line 3 or data for 9/1/09 for shift 1 on all product lines, etc.
So I guess 2 questions why is my subreport not keeping the filter when saved? and Is there a way to filter using option buttons with one of the options being all & the filter then does not filter like using the (*)?
My code is simple: domcd.openreport "rptname", acviewpreview, , GetParameters()
My code for GetParameters is more complex but the end result is correct for both the report & subreport if opened independly. In other words the report is filtered correctly and so is the subreport - but when the subreport is on the report it is not filtered correctly.
I have the used the docmd.openreport to see my subreport & it is correct and then my report opens & the subreport is not filtered. ? I tried to save the subreport & it saves with out the filter.....
The end user is tring to print a report that shows:
data with a date, product shift, & product line filter. Each of these with the availabilty of selecting all if wanted. example: data for 9/1/09 for shift 1 on product line 4 or data for 9/1/09 for all shifts on product line 3 or data for 9/1/09 for shift 1 on all product lines, etc.
So I guess 2 questions why is my subreport not keeping the filter when saved? and Is there a way to filter using option buttons with one of the options being all & the filter then does not filter like using the (*)?