I have a report "Customer Invoices" that has a query record source "OpenOrderQry". I have tried to change the record source from VB with the following command:
DoCmd.OpenReport "Customer Invoices", acViewPreview, "OrdersQrybyDate".
The Report opens, but with the "OpenOrderQry" records displayed and not the desired "OrdersQrybyDate".
In checking the queries independently of the reports, the correct records are displayed for each query.
What am I doing wrong? (I assume I can change the record source from VB?)
Thanks
Lee
DoCmd.OpenReport "Customer Invoices", acViewPreview, "OrdersQrybyDate".
The Report opens, but with the "OpenOrderQry" records displayed and not the desired "OrdersQrybyDate".
In checking the queries independently of the reports, the correct records are displayed for each query.
What am I doing wrong? (I assume I can change the record source from VB?)
Thanks
Lee