Home Cart [Log In] About Us Contact Us

Object Reference

xf_ControlsControl Related

Public Function FormReferenceString (
f As Form,
Optional ParentOffset As Integer = 0
) As String

Returns a form reference string from the root to the passed form, or the form (ParentOffset) levels up the hierarchy from the passed form.

f as Form

The form.

Optional ParentOffset as Integer = 0

Returns the name of the form up n levels, eg. 1=parent, 2=grandparent, etc.

Call Template:

Dim s As String
s = xf.Controls.FormReferenceString(f)
s = xf.Controls.FormReferenceString(f, ParentOffset)

See Also:

Example 1:

FormReferenceString(Me)      => [forms]![fmMain]![fsubClient].[form]![fsubClientVisits].[form]
FormReferenceString(Me, 1)   => [forms]![fmMain]![fsubClient].[form]
Contact Us :: About Us :: Policies :: email: infspamo@arrospamw-of-tispamme.com    © 2012 Arrow Of Time Pty Ltd