Change column count in listbox (1 Viewer)

JPR

Registered User.
Local time
Yesterday, 21:58
Joined
Jan 23, 2009
Messages
192
Hello friends,
Can anyone help me with this doubt?
I have a form with a combo and a list box. The combo lists the various queries. Depending on the users' selection, the combo propagates it results in the listbox.
My problem is that the listbox is set to 2 columns but some queries will required 3 or 4 columns, so I was wandering if there is a way to set the Column count automatically. Thank you
 

bob fitz

AWF VIP
Local time
Today, 05:58
Joined
May 23, 2011
Messages
4,719
The number of columns can be altered with the Column Count" property. You will need to adjust the "Column Widths" property as well.
 

JPR

Registered User.
Local time
Yesterday, 21:58
Joined
Jan 23, 2009
Messages
192
Thank you Bob,
I was hoping there was a way to adjust the number of columns and their with dynamically, basically in an automated way depending on the number of fields of the query selected in the combo.
 

Users who are viewing this thread

Top Bottom