Calling another form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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!
 
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.)
 
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

Subform query 1
subforms 1
subform calls 1
subform 1
Alternating Lines using colors 5
Active Event 2
Form does not go back to calling form 4
Sending Data from One subForm to another 8

Back
Top