子表格colmn宽度 [英] Subform colmn widths

查看:86
本文介绍了子表格colmn宽度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的子窗体的列不会保持固定大小。 我的子表单中有6列。 这些列名为FTID,业务名称,状态,分配方式,分配和分配的日期。您提供给我的代码以及如何输入
来设置每个1英寸的字段?
b
$
感谢您的任何帮助,您愿意给予。

I have a subform that has columns that will not stay at a fixed size.  I have 6 columns in my subform.  The columns are named FTID, Business name, status, assign by, date assigned and assigned by. Cany you provide me the code and how to enter it to set the filed to say 1inch each?

Thank you for any help you are willing to give.

推荐答案

您的子表单是否在数据表视图中?如果是这样,那么您可以像这样设置列的宽度:

Is your subform in Datasheet view? If so, then you can set the width of a column like this:

Me.NameOfYourControl.ColumnWidth = 100

Me.NameOfYourControl.ColumnWidth = 100

显然,你会改变" 100"到你想要的任何宽度。 ColumnWidth的值是Twips,因此要将其设置为1"你使用的值为1440(1440缇=约1英寸)。如果要将其设置为"autofit"文本,将
的值设置为-2。

Obviously, you'd change "100" to whatever width you want. The value of the ColumnWidth is in Twips, so to set it to 1" you'd use a value of 1440 (1440 Twips = approximately 1 Inch). If you want to set it to "autofit" the text, set the value to -2.


这篇关于子表格colmn宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆