ComboBox.BeforeUpdate 屬性 (Access)ComboBox.BeforeUpdate property (Access)

會傳回或設定的巨集、 事件程序或使用者定義的函數執行**BeforeUpdate** 事件發生時。Returns or sets which macro, event procedure, or user-defined function runs when the BeforeUpdate event occurs. 可讀寫的 StringRead/write String.



_運算式_代表**ComboBox** 物件的變數。expression A variable that represents a ComboBox object.


此屬性的有效值為:Valid values for this property are:

  • 巨集名稱,其中_macroname_是巨集的名稱。macroname, where macroname is the name of a macro.

  • [事件程序],這表示與指定物件之BeforeUpdate事件相關聯的事件程序。[Event Procedure], which indicates the event procedure associated with the BeforeUpdate event for the specified object.

  • =functionname(),其中_functionname_是使用者定義函數的名稱。=functionname(), where functionname is the name of a user-defined function.


下列範例指定當目前專案的第一個表單上發生BeforeUpdate事件,應該執行的關聯的事件程序。The following example specifies that when the BeforeUpdate event occurs on the first form of the current project, the associated event procedure should run.

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

支援和意見反應Support and feedback

有關於 Office VBA 或這份文件的問題或意見反應嗎?Have questions or feedback about Office VBA or this documentation? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.