[AccessD] Column count and width through code

Seth Galitzer sgsax at ksu.edu
Thu Mar 27 10:01:35 CST 2003


Susan,

Lo and behold, it turns out you want the ColumnWidths property.  Like
ColumnCount this property can be read or set at runtime.  Look up help
on "List Box Control Properties" for a full list of all properties.

Seth

On Thu, 2003-03-27 at 09:43, Susan Zeller wrote:
> I have a listbox whose rowsource changes depending on other selections
> from the user.  In one case I need 3 columns, in the other case, 5
> columns.  Can I set the number of columns and the width of the columns
> through code?  I found me.lstbox.columncount which I assume gives me the
> count.  But, I can't find the equivalent in code of "column widths" in
> the properties window.  I'm thinking this is simple, but it is escaping
> me.  I'm in Access 2002.
> 
> --Susan

-- 
Seth Galitzer			sgsax at ksu.edu
Computing Specialist		http://puma.agron.ksu.edu/~sgsax
Dept. of Plant Pathology
Kansas State University



More information about the AccessD mailing list