Syntax Question

N

NEWER USER

I need help verifying which syntax is correct. I am referencing fields and
properties of subforms on a main form. A few examples below.
Forms!frmProduct!fsubRelations!Sales!ColumnHidden = 0
Forms!frmProduct!fsubRelations!Sales.Requery
"Number = Forms!frmProduct!fsubRelations!Number

OR should I use?
Forms.frmProduct.fsubRelations.Sales.Form.ColumnHidden = 0
Forms.frmProduct.fsubRelations.Form.Sales.Requery
"Number = Forms.frmProduct.fsubRelations.Forms.Number

The exclamation points seem to work, but which is correct? Should I always
reference subforms with ".Form."?
Thanks in advance
 

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

Syntax HELP 1
Referencing Forms 5
Open form on double click 7
Access Reference Subform's Control 0
Modify Code on Form 2
Referencing subform from another subform 11
Toggling record sources of subforms 5
Form filter problem 3

Top