Originally posted by mmccarthy
While a go I had problem of selecting and deselecting.
I had 4 List boxes, I wanted to select an item from ListBox1 and other three list boxes get deselected.
The above code solved this, Thanks to Mary.
Now
I have 4 buttons, called ViewList1, ViewList2, ViewList3 and ViewList4 which display reports based on the selection from the list boxes. For example, when I select an item from Listbox1 and hit the button "ViewList1" , it will open a report1. When I select an item from Listbox2 and hit the button ViewList2, it will open report2 and the same for List3 and 4.
Basically report1 shows information for the selected item from Listbox1; report2 shows information for the item selected from Listbox2 and etc….
The problem that I have is that when
I select an item from Listbox1
and hit button ViewList2 (practically I shouldn't hit that button)
it will open report2 where it shouldn't, because report2 is based on item selected from Listbox2 not Listbox1 and Listbox2's item wasn't even selected.
I have this problem for all of the buttons.
How can I fix this, I want to be able to display a message to the user when they hit the wrong button instead of opening a wrong report.
The other question I have is, I wanted to merge all the buttons together, meaning to only have one button "View" to display the reports based on the selection from the selected Listboxes. How can I do this?
I hope my questions and explanation are clear?
Comment