Access) (Form.CurrentSectionLeft 屬性

使用此屬性來判斷從目前區段左側到表單左側的距離,單位 為單位 。 可讀寫的 Integer。

語法

運算式。CurrentSectionLeft

expression 代表 Form 物件的變數。

註解

CurrentSectionLeft 屬性設定變更,使用者捲動表單時。

表單的其 DefaultView 屬性設定為單一表單如果使用者捲動至右邊的左邊緣的表單屬性設定值即為負值。

CurrentSectionLeft 屬性很適於尋找做為連續表單或資料工作表檢視中顯示在表單檢視中詳細資料區段的位置。

範例

下列範例會顯示連續表單上控制項的 CurrentSectionLeft 和 CurrentSectionTop 屬性設定。 無論使用者何時移動至新的記錄,目前區段的屬性設定值會顯示在表單頁首的 lblStatus 標籤中。

Private Sub Form_Current() 
 
 Dim intCurTop As Integer 
 Dim intCurLeft As Integer 
 
 intCurTop = Me.CurrentSectionTop 
 intCurLeft = Me.CurrentSectionLeft 
 Me!lblStatus.Caption = intCurLeft & " , " & intCurTop 
 
End Sub

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。