Requery all controls

M

Mike Collard

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


Top