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

取得或設定將事件程序名稱的字首部分。Gets or sets the prefix portion of an event procedure name. 可讀寫 的字串Read/write String.

語法Syntax

運算式EventProcPrefixexpression.EventProcPrefix

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

註解Remarks

例如,如果您有命令按鈕使用名為Details_Click的事件程序, EventProcPrefix屬性會傳回字串的詳細資訊For example, if you have a command button with an event procedure named Details_Click, the EventProcPrefix property returns the string Details.

Microsoft Access 會將事件程序名稱的字首部分新增到具有底線字元 (_) 的事件名稱。Microsoft Access adds the prefix portion of an event procedure name to the event name with an underscore character ( _ ).

支援和意見反應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.