D
DS
I have one Listbox where I need to change the content from a command
button. On the first command button I have...
Private Sub Command0_Click()
With Me.List3
.RowSource = "SELECT Menus.MenuID, Menus.MenuName, Menus.Active
" & _
"FROM Menus " & _
"WHERE (((Menus.Active) = -1)) " & _
"ORDER BY Menus.MenuName;"
.ColumnCount = 3
.ColumnWidths = "0 in;1.5 in;0 in"
.Requery
End With
End Sub
This works fine...
On the second Command Button I have...
Private Sub Command1_Click()
With Me.List3
..RowSourceType = "Value List"
..RowSource = "SUNDAY" & ",MONDAY" & ",TUESDAY" & ",WEDNESDAY" &
",THURSDAY" & ",FRIDAY" & ",SATURDAY"
..ColumnCount = 1
..ColumnWidth = 1.5 * 1440
..Requery
End With
End Sub
This doesn't work at all. I see no content in the listbox, also then
when I go back and click on the other command button I see Menu.MenuName
instead of the original content...
Any help appreciated.
Thanks
DS
button. On the first command button I have...
Private Sub Command0_Click()
With Me.List3
.RowSource = "SELECT Menus.MenuID, Menus.MenuName, Menus.Active
" & _
"FROM Menus " & _
"WHERE (((Menus.Active) = -1)) " & _
"ORDER BY Menus.MenuName;"
.ColumnCount = 3
.ColumnWidths = "0 in;1.5 in;0 in"
.Requery
End With
End Sub
This works fine...
On the second Command Button I have...
Private Sub Command1_Click()
With Me.List3
..RowSourceType = "Value List"
..RowSource = "SUNDAY" & ",MONDAY" & ",TUESDAY" & ",WEDNESDAY" &
",THURSDAY" & ",FRIDAY" & ",SATURDAY"
..ColumnCount = 1
..ColumnWidth = 1.5 * 1440
..Requery
End With
End Sub
This doesn't work at all. I see no content in the listbox, also then
when I go back and click on the other command button I see Menu.MenuName
instead of the original content...
Any help appreciated.
Thanks
DS