Link to home
Start Free TrialLog in
Avatar of Murray Brown
Murray BrownFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Access VBA Set Filter on SubReport and open main report

Hi

I have an Access report called "rptInvoice" that has a sub report called "Invoice_Details_SubReport".
I need to write VBA code to set the filter on the Sub Report to "InvoiceID = 48" and then open the main report.
The image below shows my attempt at the code so far. What am I doing wrong?
Thanks

User generated image
ASKER CERTIFIED SOLUTION
Avatar of Scott McDaniel (EE MVE )
Scott McDaniel (EE MVE )
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Murray Brown

ASKER

Thanks very much