Hi I have a list box on a form where I can select any table in my database, the onclick event puts my selection into the rowsource of another listbox.
Private Sub lsttables_Click()
tblsamp.RowSource = lsttables.Value
tblsamp then acts as a sample view for the selected table. At the moment I have the column count of tblsamp set to ten. Is there anyway I can count the number of columns in the table selected from lsttables and pass this to column count field of tblsamp?
thanks
Private Sub lsttables_Click()
tblsamp.RowSource = lsttables.Value
tblsamp then acts as a sample view for the selected table. At the moment I have the column count of tblsamp set to ten. Is there anyway I can count the number of columns in the table selected from lsttables and pass this to column count field of tblsamp?
thanks