Table of contents
TOC
折叠目录
展开目录

DisplayControl 属性DisplayControl Property

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

适用于:访问 2013年 |访问 2016 年Applies to: Access 2013 | Access 2016

可以使用表设计视图中的显示控件属性来指定要用于显示字段的默认控件。You can use the DisplayControl property in table Design view to specify the default control you want to use for displaying a field.

设置Setting

通过单击字段属性节中的查阅选项卡,可以在表设计视图中的表的属性表设置的显示控件属性。You can set the DisplayControl property in the table's property sheet in table Design view by clicking the Lookup tab in the Field Properties section.

该属性包含选定字段的可用控件的下拉列表。对于数据类型为“文本”或“数字”的字段,该属性可设置为文本框、列表框或组合框。对于数据类型为“是/否”的字段,该属性可设置为复选框、文本框或组合框。This property contains a drop-down list of the available controls for the selected field. For fields with a Text or Number data type, this property can be set to Text Box, List Box, or Combo Box. For fields with a Yes/No data type, this property can be set to Check Box, Text Box, or Combo Box.

备注Remarks

当您选择用于此属性的控件时,配置该控件所需的任何附加属性还显示在查找选项卡上。When you select a control for this property, any additional properties needed to configure the control are also displayed on the Lookup tab.

设置该属性和任何相关的控件类型的属性都会影响字段在数据表视图和窗体视图中的显示。通过使用控件和控件属性设置集在表设计视图中显示的字段。如果字段的DisplayControl属性在表设计视图,并将其拖动窗体设计视图中字段列表中,Microsoft Access 会将相应的属性复制到控件的属性表。Setting this property and any related control type properties will affect the field display in both Datasheet view and Form view. The field is displayed by using the control and control property settings set in table Design view. If a field had its DisplayControl property set in table Design view and you drag it from the field list in form Design view, Microsoft Access copies the appropriate properties to the control's property sheet.

访问支持资源ACCESS SUPPORT RESOURCES
访问 MSDN 上的开发人员论坛Access for developers forum on MSDN
Support.office.com 的访问帮助Access help on support.office.com
Answers.microsoft.com 的访问帮助Access help on answers.microsoft.com
特定的访问权限错误代码,在 Bing 上搜索Search for specific Access error codes on Bing
访问论坛 UtterAccess 上Access forums on UtterAccess
访问 wiki 上 UtterAcessAccess wiki on UtterAcess
访问开发人员和 VBA 编程帮助中心 (FMS)Access developer and VBA programming help center (FMS)
在 StackOverflow 上访问张贴内容Access posts on StackOverflow

© 2018 Microsoft