Calling another form

P

PeterM

Here's one I can't figure out.

I have formA and on formA is subFormB. I need to be able to do a requery on
subformB from formC. I can't get it to work, so far I've got the following in
formC:

forms!formA.form.subformB.requery

When formA originally opens it does a query on subformB automatically.
Should I be calling for a requery of formA or subformB?

Thanks in advance for your help!
 
A

Allen Browne

The ".Form" bit is in the wrong place. Try:
Forms!formA!subformB.Form.Requery

That means, requery the form in the subform control named "subformB", on the
form named "formA".

Note that the name of the subform control can be different from the name of
the form it contains (its SourceObject.)
 
P

PeterM

thank you Allen!

Allen Browne said:
The ".Form" bit is in the wrong place. Try:
Forms!formA!subformB.Form.Requery

That means, requery the form in the subform control named "subformB", on the
form named "formA".

Note that the name of the subform control can be different from the name of
the form it contains (its SourceObject.)
 

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

Active Event 2
Subform query 1
subforms 1
Form does not go back to calling form 4
Calculating two different totals from a sub form 0
Finding Totals from two diff date ranges 5
subform 1
subform calls 1

Top