Hello,
I have a report (ReportMain) with two unbound subreport (Sub1 and Sub2). I would like to create the report through VBA so that the user can input custom date (field Date/Time of the table Log).
when using the VBA code docmd Openreport, I can pass the condition to the whereCondition. It works on a subreport individually. That syntax doesn’t work when opening the main report and it doesn’t work either when creating/opening (and saving) the subreport with the condition and then opening the main report.
i tried to use filter, but I probably don’t have the proper syntax because I get a error message with following code “on load” on the main report (with a random text field):
Me!Sub1.Report.filter = “TextField = ‘Text’”.
Thanks for your help
I have a report (ReportMain) with two unbound subreport (Sub1 and Sub2). I would like to create the report through VBA so that the user can input custom date (field Date/Time of the table Log).
when using the VBA code docmd Openreport, I can pass the condition to the whereCondition. It works on a subreport individually. That syntax doesn’t work when opening the main report and it doesn’t work either when creating/opening (and saving) the subreport with the condition and then opening the main report.
i tried to use filter, but I probably don’t have the proper syntax because I get a error message with following code “on load” on the main report (with a random text field):
Me!Sub1.Report.filter = “TextField = ‘Text’”.
Thanks for your help