You can use these properties to determine the distance in twips from the top edge and left side of the current section to the top edge and left side of the form.
These property settings are read-only and are available only in a macro or Visual Basic.
The CurrentSectionLeft and CurrentSectionTop property settings change whenever a user scrolls through a form.
In single form view, if the user scrolls above the upper-left corner of the section or to the right of the left edge of the form, the property settings are negative values. If a section isn’t visible in the Form window, these properties are set to Null.
In continuous form view, if a section isn’t visible the CurrentSectionTop property is equal to the InsideHeight property of the form.
These properties are useful for finding the position of detail sections displayed in Form view as continuous forms. Each detail section has a different CurrentSectionTop property setting, depending on the section’s position on the form.
InsideHeight, InsideWidth Properties; Left, Top Properties; WindowHeight, WindowWidth Properties.
The following example displays the CurrentSectionLeft and CurrentSectionTop property settings for a control on a continuous form. Whenever the user moves to a new record, the property settings for the current section are displayed in the lblStatus label in the form’s header.
Private Sub Form_Current() Dim intCurTop As Integer, intCurLeft As Integer intCurTop = Me.CurrentSectionTop intCurLeft = Me.CurrentSectionLeft Me!lblStatus.Caption = intCurLeft & " , " & intCurTopSub