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 物件

您可以使用 DataEntry 屬性來指定繫結表單開啟時是否允許資料輸入。 Data Entry 屬性不會決定是否能新增記錄,它只能決定是否要顯示現有的記錄。 讀/寫布林值

expression.DataEntry

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

備註

DataEntry 屬性使用以下設定。

設定

Visual Basic

描述

Yes

True

表單開啟時僅顯示空白記錄。

No

False

(預設) 表單開啟時顯示現有的記錄。


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

此屬性可以在任何檢視中設定。

只有當 AllowAdditions 屬性設定為 Yes 時,DataEntry 屬性才會有效果。

附註: 設定 OpenForm 動作的 Data Mode 引數時,Microsoft Office Access 2007 將會覆寫數個表單屬性設定。 如果 OpenForm 動作的 Data Mode 引數設為 Edit,Access 將會開啟具有下列屬性設定的表單:

  • AllowEdits — 是

  • AllowDeletions — 是

  • AllowAdditions — 是

  • DataEntry — 否

若要防止 OpenForm 動作覆寫任何現有的屬性設定,請忽略 Data Mode 引數設定,讓 Access 使用表單定義的屬性設定。

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!

×