
Originally Posted by
Paul H
Before I try to wade through it does anyone have a simple way of setting the column width property of the data sheet? I undertand that this needs to be done at runtime using DAO. Finding DAO somewhat bewidering, I'd like to keep this simple as possible. A bit of generic code would be nice.
Umm, no you don't need DAO to set the column width property of the datasheet view of a FORM (so use that instead of just a query or table displayed as a datasheet).
Code:
Me.ControlNameHere.ColumnWidth = 1000
Or for the subform from the main form:
Code:
Me.SubformControlNameHere.Form.ControlNameHere.ColumnWidth = 1000
adjust the number for the width to get the size you want. It is in TWIPS.