G
Guest
I have a report with a number of subreports located in the detail section.
Each of the subreports represent the results from various queries that all
tie to the same Customer ID. The Customer ID is found in a properly defined
public variable. The value of the variable is changed through a function in
a group header On Format event.
Here's the problem: The function that updates the variable is functioning
properly (i.e., places the new customer ID in the varialbe when the customer
changes). Each query that is basis for a subreport is able to access the new
global variable value and is functioning properly, independent of the report.
Each of the subreports is functioning properly, independent of the "host"
report. However, the subreports are not refreshing/requerying when viewed in
the "host" report. Instead, all of the subreports show the results of the
various queries for the last Customer ID that was placed in the global
variable the last time the report was run. So, instead of updating the
subreports for each client, I end up with the same incorrect data for all
Customers.
Any ideas as to why the subreports are not updating despite each component
(update global variable, source query, source subreport) is properly
functioning?
Thanks in advance for your time!
Each of the subreports represent the results from various queries that all
tie to the same Customer ID. The Customer ID is found in a properly defined
public variable. The value of the variable is changed through a function in
a group header On Format event.
Here's the problem: The function that updates the variable is functioning
properly (i.e., places the new customer ID in the varialbe when the customer
changes). Each query that is basis for a subreport is able to access the new
global variable value and is functioning properly, independent of the report.
Each of the subreports is functioning properly, independent of the "host"
report. However, the subreports are not refreshing/requerying when viewed in
the "host" report. Instead, all of the subreports show the results of the
various queries for the last Customer ID that was placed in the global
variable the last time the report was run. So, instead of updating the
subreports for each client, I end up with the same incorrect data for all
Customers.
Any ideas as to why the subreports are not updating despite each component
(update global variable, source query, source subreport) is properly
functioning?
Thanks in advance for your time!