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 run code in SubReport while opening main report

Hi

I have VBA code to populate a ListBox in an Access subreport . I an trying to run
the code  in this SubReport but getting the error shown below. The main report is called "rptInvoice"

User generated image
SOLUTION
Avatar of Gustav Brock
Gustav Brock
Flag of Denmark 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
ASKER CERTIFIED 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
Just a comment: What's the use of a ListBox in a report?

I prefer just querying the data already in the data source itself.
Avatar of Murray Brown

ASKER

Hi Ste5an. The ListBox is there for the [Invoice Detail]. The rest of the form is there for the [Invoice] table
Thanks very much
The ListBox is there for the [Invoice Detail]
That's generally done with a standard Subreport instead of a Listbox on a Subreport.
Thanks Scott