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

傳回或設定指出要在 DataChange 事件發生時執行哪些巨集、事件程序或使用者定義函數的 String。 讀/寫。

expression.DataChange

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

備註

此屬性的有效值為 "macroname" (其中 macroname 為巨集名稱)、"[Event Procedure]" (指出與指定物件的 DataChange 事件關聯的事件程序) 或 "=functionname()" (其中的 functionname 為使用者定義函數的名稱)。

範例

以下範例會指定目前專案的第一個表單發生 DataChange 事件時,應執行關聯的事件程序。

Forms(0).DataChange = "[Event Procedure]"

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!

×