Hi,
I'm wondering if there is a way to do a Best Fit on a column in a query through code, similar to what would happen if you went through the toolbar (Format -> Column Width -> Best Fit).
I know how to set it to a specific size through VB:
Set Prp = fld1.CreateProperty("ColumnWidth", dbInteger) Prp.Value = intColumn_Width
fld1.Properties.Append Prp
The problem is, I really don't know what to set the column width at unless I look at the length of data in each field which would be really time-consuming.
Any thoughts?
Thanks,
Bill
I'm wondering if there is a way to do a Best Fit on a column in a query through code, similar to what would happen if you went through the toolbar (Format -> Column Width -> Best Fit).
I know how to set it to a specific size through VB:
Set Prp = fld1.CreateProperty("ColumnWidth", dbInteger) Prp.Value = intColumn_Width
fld1.Properties.Append Prp
The problem is, I really don't know what to set the column width at unless I look at the length of data in each field which would be really time-consuming.
Any thoughts?
Thanks,
Bill