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

會傳回或設定是否該物件為可見。Returns or sets whether the object is visible. 可讀寫的 BooleanRead/write Boolean.



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


若要列印時隱藏物件,請使用 DisplayWhen 屬性。To hide an object when printing, use the DisplayWhen property.

您可以使用 Visible 屬性會將 Current 事件發生時執行巨集或事件程序中包含屬性隱藏表單或報表上的控制項。You can use the Visible property to hide a control on a form or report by including the property in a macro or event procedure that runs when the Current event occurs. 例如,您可以顯示或隱藏旁 salesperson 每月銷售總額銷售報告,根據銷售總額祝賀訊息。For example, you can show or hide a congratulatory message next to a salesperson's monthly sales total in a sales report, depending on the sales total.

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