Update Report

M

Marc Mamsey

I have a button on a form that opens a report with
the "OpenReport" macro function. If I open the report,
close it, change a value on the form, save the record,
and then open the report again, it is not updated. In
order for it to update, I have to close and reopen the
form, or switch to a different record and back.

How do I force a report to update before it opens?

Thanks,

Marc
 
D

Duane Hookom

Force the record to save prior to the report running. In code, this would be
DoCmd.RunCommand acCmdSaveRecord
 
Top