How to programatically refresh a report in preview mode

  • Thread starter Thread starter Jim Shaw
  • Start date Start date
J

Jim Shaw

BlankFrom a form how can I tell a report to refresh its display? Or, what
event in the report can I use when one of the reports controls is updated to
cause the new value to appear in the report's preview?

My report has no underlying table; it gets all of its data from a form it
loads in the OnOpen event.
In the form, I've established addressability back to the fields in the
report and can load data onto the report. However, the new data is not
appearing in the print preview unless a take the preview back to design mode
and then back to display mode. If I were to update the reports filter, it
would automatically refresh with the filtered data, but I can't get it to do
that when I change the value of a text control.

Thanks
Jim
 
Jim:

By and large there is no way to refresh a report once its been displayed
unless you go to design mode. If you move from page to page, causing events
like a header or detail section's on print event to fire, you can then pick
up new data, but that is pretty impractical. A report is really a static
view of data; there's no requery or refresh event etc.
 
Ratz! I was afraid of that. Guess I'll have to do it the hard way thru a
table.
Thanks anyhow
Jim
 
Back
Top