Help with Syntax for Requery

  • Thread starter Thread starter mattc66 via AccessMonster.com
  • Start date Start date
M

mattc66 via AccessMonster.com

What is wrong with my syntax? It says its not found.
Forms![frmGroup]!Form![sfrmCustGroup_C1].Requery
 
Hi Matt,
the syntax for a subform on a form is like this:

Forms![frmGroup]![Name of subform control]!Form.Requery

if sfrmCustGroup_C1 is the name of the subform inside the subform control,
use the name of the subform control instead.
A form with a subform control is similar to having an image control with a
picture inside it.
The form has a subform control with a subform inside it.

Jeanette Cunningham
 
Hi Matt,
the syntax for a subform on a form is like this:

Forms![frmGroup]![Name of subform control]!Form.Requery

Almost... actually it should be

Forms![frmGroup]![Name of subform control].Form.Requery

The .Form is a property of the subform control - even though it's also an
object within that control.


John W. Vinson [MVP]
 
Thanks for that John.

Jeanette Cunningham


John W. Vinson said:
Hi Matt,
the syntax for a subform on a form is like this:

Forms![frmGroup]![Name of subform control]!Form.Requery

Almost... actually it should be

Forms![frmGroup]![Name of subform control].Form.Requery

The .Form is a property of the subform control - even though it's also an
object within that control.


John W. Vinson [MVP]
 

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

Requery form 2
Syntax Error (Missing Operator) 3
requerying a subform 1
Requery Subform two levels Down 3
Requery Subforms 1
Requery Subform A from Subform B 6
requery from form 13
Requery (formscoding) 1

Back
Top