Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

適用對象

Form 物件

Report 物件

您可以使用 OrderByOn 屬性指定是否要套用物件的 OrderBy 屬性設定。 讀/寫布林值

expression.OrderByOn

運算式 必要。 傳回 [套用至] 清單中其中一個對象的表達式。

備註

OrderByOn 屬性使用以下設定。

設定

Visual Basic

描述

Yes

True

OrderBy 屬性設定會在物件開啟時套用。

No

False

(預設) OrderBy 屬性設定不會在物件開啟時套用。


附註: 針對報表,您可以使用報表的屬性工作表、巨集或 Visual Basic for Applications (VBA) 程式碼來設定 OrderByOn 屬性。

針對所有其他物件,您可以在 [常用] 索引標籤上,按一下 [排序與篩選] 底下的 [排序] 按鈕,或是使用 VBA 來設定 OrderByOn 屬性。

建立物件時,新的物件會繼承做為其建立依據之資料表或查詢的 RecordSourceFilterOrderByOrderByOnFilterOn 屬性。

範例

以下範例會顯示一個訊息,指出「郵寄清單」表單的 OrderByOn 屬性的狀態。

MsgBox "OrderByOn property is " & _
Forms("Mailing List").OrderByOn

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×