Hi everyone !
1) An example from help:
"Each Form object has a Controls collection, which contains all
controls on the form. You can refer to a control on a form either
by implicitly or explicitly referring to the Controls collection. Your
code will be faster if you refer to the Controls collection implicitly.
The following examples show two of the ways you might refer
to a control named NewData on the form called OrderForm:
' Implicit reference.
Forms!OrderForm!NewData
' Explicit reference.
Forms!OrderForm.Controls!NewData
The next two examples show how you might refer to a control named NewData on
a subform ctlSubForm contained in the form called OrderForm:
Forms!OrderForm.ctlSubForm.Form!Controls.NewData
Forms!OrderForm.ctlSubForm!NewData"
Why is there a "." character after the name of the main form ? (and
the same with a dot after "Controls" property). It's not a method
or property ... And if you look at other key-word "Form, Report
Properties" there is also an example:
intOrderID = Forms!Orders!OrderDetails.Form!OrderID
And now - there is a "!" - not "." wich is more logical for me.
Why wasn't it this way in the last example ?
And one more thing - I don't understand the meaning of property
"form" - why to refer to itself ? Can't we refer just this way:
Forms!Orders!OrdersDetails!OrderID ???
If we can do that in this way, why to use "form" property ?
Thanks for all answers.
PS. I use MS Access 2000 version 9.0.2812