Requery all controls

  • Thread starter Thread starter Mike Collard
  • Start date Start date
Apparently it needs a bit more code if the controls are
not bound to the form; which mine are not. A suggested
solution from another formum is

Code to requery all controls

Dim ctrl as Control

For each ctrl in Me.Controls
ctrl.requery
Next

and a simple

On Error Resume Next
will skip controls that can't be requeried :)

If all your controls are bound to the recordsource, you
can try requerying the entire form:
Me.requery

But if you have independent subforms or listboxes or other
controls, you have to requery each of them
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Requery on a Tab Control - OnClick 3
requery from form 13
Requery Subforms 1
Requery Form from Combo Box 3
Requery subforms 3
Refreshing tab control 2
Requery form 2
Requery tabbed documents 2

Back
Top