Hello again all,
My current problem involves a listbox, which I want to show me data from different tables when I hit a button like "View Table One" and then change when I click "View Table Two". Some of the tables have different numbers of columns, and I think I cracked part of the code, here's what I have so far:
Private Sub ViewTableOne_Click()
LstBox.ColumnCount = 2
Me.LstBox.ColumnWidths = "0.6 in, 2.6 in"
LstBox.ControlSource = "TableOne"
End Sub
When I click the "ViewTableOne" button, it changes the ColumnCount and Widths fine, but displays no data.
Can anyone offer me a hand? I plan on having this ListBox display data for easy viewing from 5 or 6 different table ranging from one to three columns.
Thanks!
Pick
My current problem involves a listbox, which I want to show me data from different tables when I hit a button like "View Table One" and then change when I click "View Table Two". Some of the tables have different numbers of columns, and I think I cracked part of the code, here's what I have so far:
Private Sub ViewTableOne_Click()
LstBox.ColumnCount = 2
Me.LstBox.ColumnWidths = "0.6 in, 2.6 in"
LstBox.ControlSource = "TableOne"
End Sub
When I click the "ViewTableOne" button, it changes the ColumnCount and Widths fine, but displays no data.
Can anyone offer me a hand? I plan on having this ListBox display data for easy viewing from 5 or 6 different table ranging from one to three columns.
Thanks!
Pick