Refresh report

ilanray

Member
Local time
Today, 19:33
Joined
Jan 3, 2023
Messages
129
Hi,
When the report is open i created an event when click on one of the field. It open the form.
After i update the field (on the form) i would like to refresh the report.
I don't want to close the report and reopen
Any ideas?

Thanks
 
Seems like an awkward solution. Why are you starting with a report rather than just using a form for everything?
 
After i update the field (on the form) i would like to refresh the report.
Look at the Report.Requery method.
Data in the database will only be updated when you save the whole record in the form, not individual controls (fields). So, you could execute the following line in the Form_AfterUpdate event procedure.
Code:
Reports("YourReportName").Requery

@arnelgp , if it is possible to click a button on a report, it must be in ReportView, which allows using Requery instead of reopening the report.
 

Users who are viewing this thread

Back
Top Bottom