I would like to programically my form's (datasheet) colums to fit (expand/contract) the contents of my column. Currently I have a form with several subforms and I'm attempting to use the code (see below) to do this. When I use the breakpoint feature and
pause the code I can hover over these lines of code and see where VBA is altering the column width. But for instance, me.DOR (a date field) is always set at a column width of 1140 in spite of the fact that after my code runs, there is about 10 characters
of space left. What confuses me is that some of the columns are altered while others appear to not be altered enuf. Any thoughts on what I am missing here?
OnLoad EP
Me.EEid.ColumnWidth = -2 (vba hover button states 1440)
Me.EEName.ColumnWidth = -2 (vba hover button states 1845)
Me.DOR.ColumnWidth = -2 (vba hover button states 1140)
Me.Overall.ColumnWidth = -2 (vba hover button states 540)
Me.MgrID.ColumnWidth = -2 (vba hover button states 1440)
Me.Dirid.ColumnWidth = -2 (vba hover button states 1440)