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

您可以使用 StatusBarText 屬性指定選取控制項時在狀態列中顯示的文字。You can use the StatusBarText property to specify the text that is displayed in the status bar when a control is selected. 可讀寫 的字串Read/write String.



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


您使用 255 個字元的字串運算式來設定 StatusBarText 屬性。You set the StatusBarText property by using a string expression up to 255 characters long. 您可以在狀態列中顯示的文字的長度,取決於電腦的硬體及視訊顯示器。The length of the text that you can display in the status bar depends on your computer hardware and video display.

您可以使用 StatusBarText 屬性能夠提供有關控制項的特定資訊。You can use the StatusBarText property to provide specific information about a control. 例如,文字方塊焦點時,簡短的指示可以告訴使用者要輸入資料的類型。For example, when a text box has the focus, a brief instruction can tell the user what kind of data to enter.

如果您從欄位清單拖曳欄位來建立控制項、 欄位的 描述 屬性的值會複製到 StatusBarText 屬性。If you create a control by dragging a field from the field list, the value in a field's Description property is copied to the StatusBarText property.


[!注意事項] 您也可以使用 ControlTipText 屬性來顯示控制項的工具提示。You can also use the ControlTipText property to display a ScreenTip for a control.


下列範例會設定Mailing List表單中的Address_TextBox控制項取得焦點時在表單檢視中顯示狀態列文字。The following example sets the status bar text to be displayed when the Address_TextBox control in the Mailing List form has the focus in Form view.

Forms("Mailing List").Controls("Address_TextBox"). _ 
 StatusBarText = "Enter the company's mailing address." 

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