How to refresh a subform in datasheet view

P

Paul

A button on the main form to open a delete query to delete a record on a
table which used to populate the records on a subform in datasheet view. How
to refresh the datasheet view subform after the deleteion. Thanks.
 
R

Reggie

After you run the query on the button click event requery the subform.

Me.mysubformname.Requery
 
V

Van T. Dinh

In the CommandButton_Click Event, use something like:

{Your DELETE Query}
DoEvents
Me.SubformControl.Form.ReQuery

Note that the SubformControl name may be different from the name of the Form
being used as the Subform.
 

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

Top