Data not refreshing on form

wbilbro

New member
Local time
Today, 10:40
Joined
Nov 1, 2001
Messages
6
When I do a DoCmd.Requery for my form, it behaves differently from clicking F9 to refresh the data with my changes.

I am trying to refresh multiple controls on a form before viewing the report. Can anybody please tell me why the DoCmd.Requery is not working and how I might fix this problem.
Thank you
 
Thanks!
 
I usually refresh or requery a form when the data has changed behind the scenes in the table underlying the form. Then "me.requery" or just "requery" usually works in a command button on the form.

But sometimes users will make changes in a form and print the report before changes have been updated in the table. So the report still sees the old values.

Requery won't work because it just tells the form to fill with data from the table and the updated values are not yet in the table.

So, you can paste this into your print button just before the print command and it will update the values in time to be seen in the report...

DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
 

Users who are viewing this thread

Back
Top Bottom