Subforms

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
 
A

Arvin Meyer [MVP]

You can requery the 2nd subform in the first subform's after update event.
 
A

Arvin Meyer [MVP]

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

Similar Threads

linking to two subforms 2
Link Two Subforms on a Main Form 1
Subform record coordination 2
Forms and subforms 2
Subform Data Entry Setting 0
SubForms 4
Multiple Sub Forms 3
Sync two subforms 1

Top