Refesh From Subform

  • Thread starter Thread starter ckerns
  • Start date Start date
C

ckerns

I have a form with a subform. Sub shows aggregate sums. Also on main
form is a list box to show the details of the aggregate sums.

List box is filtered based on subform and all works well..

If I click on aggregate on subform, click a refresh button on main
form, list will update and show details.

What I want to do is to have the list box refresh when I click on a
control on the subform.

Any ideas?

tia

ck
 
Create something in your main form like:

Sub RefreshForm()
Me.List0.RowSource = ...... 'or whatever your commands are
End Sub

Then in the subform, in the OnClick event, something like

Me.Parent.RefreshForm
 

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

Back
Top