Update / Refresh as sub form

  • Thread starter Sohaib Elahi via AccessMonster.com
  • Start date
S

Sohaib Elahi via AccessMonster.com

I have a Main Form, having two subforms side by side with common linked
field. Both the subforms use the same data table.
First subform is used for data entry in single form view.
Other subform is used for data view in countineous form view.
The problem is that after adding a new record through the first subform,
the second subform is not being updated / refreshed. Although when I
navigate into the Main form, the second subform becomes updated/refresh.
While I want to get update/refresh the subform After Update / After Add new
record.
I will be pleased for help in this problem.
 
G

Guest

Sohaib Elahi via AccessMonster.com said:
I have a Main Form, having two subforms side by side with common linked
field. Both the subforms use the same data table.
First subform is used for data entry in single form view.
Other subform is used for data view in countineous form view.
The problem is that after adding a new record through the first subform,
the second subform is not being updated / refreshed. Although when I
navigate into the Main form, the second subform becomes updated/refresh.
While I want to get update/refresh the subform After Update / After Add new
record.
I will be pleased for help in this problem.

In the AfterUpdate event of you first subform add code to requery the second.

DoCmd.Requery Forms!YourMainForm!YourSecondSubform
 

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