Subforms

  • Thread starter Thread starter sandrao
  • Start date Start date
S

sandrao

I have created a form with two subforms attached. Subform A is
created in the Single Form format and subform B is a continuous
form. Subform A is just for entering information whereas subform B is
mainly for reference.

Both of these form are connected based on the same table. The problem
that I have noticed is that the information that is entered is not be
updated in the subform B. Of course when I close the form and open it
again the information is there. How can I get the form to reflect the
same information.

sandrao
 
How do I refer to the subform in the after update code?
=======================================

Here's the code you need (untested). You will need to use the correct names
where I've put NameOf

Sub NameOfSub1_AfterUpdate()
Me.Parent.NameOfSub2.Requery
End Sub
 

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