access course london - vba coding refresh subform

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Access VBA Training and help » access course london - VBA coding to refresh a subform

access course london - VBA coding to refresh a subform

resolvedResolved · Low Priority · Version Standard

Julie has attended:
Access Advanced course
Access VBA course

VBA coding to refresh a subform

I have a form with an attached subform (which is in datasheet view). I need the subform to refresh automatically when the focus shifts back to the main form. The only way i have found to do this so far is to close and reopen the whole form which is a bit jerky for the user.

Is there any command that can do this?

RE: VBA coding to refresh a subform

Try adding the following code to an event procedure on the GOTFOCUS Event of the entire form.

Private Sub FormName_GotFocus()
Me.Refresh
End Sub

 

Training courses

 

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


Server loaded in 0.07 secs.