How to requery a form from sub form

A

a

access 2007

How to requery a form from sub form

Example:

I have master form with 2 subform, the 2 subform have the same (data source)

I want when edit one of them the edit apply to the other form
 
P

Paul Shapiro

Add this code to the appropriate event in Subform1:
Me.Parent.subformControl2.Requery, where subformControl2 is the name of the
subform control that contains your 2nd subform.

I don't remember the precise syntax for this so you might need to add .Form
in one or two places:
Me.Parent.Form.subformControl2.Form.Requery
 
W

Wei Lu [MSFT]

Hi ,

How is everything going? Please feel free to let me know if you need any
assistance.

Sincerely,

Wei Lu
Microsoft Online Community Support

==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 

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