Hello All,
I appreciate the help on this. I've been asking a lot of you for help on this and some have asked that I attach a sample of my db to display what I'm dealing with.
Just a basic explanation of the db. frmListedAM contains two listboxes (overlapped) and a cmd button.
The reason there are two listboxes with the same data is:
1. lstListedAM is in "multiselect = none"; lstListedAMHidden is in "multiselect = simple" and "visible = no"
2. lstListedAM (on my real db) has a code behind it that sends the selected record to a subform where the same record is displayed in detail vs seeing its basic information in the lsitbox. If I had lstListedAM in other than "multiselect = none", the code sending it to subfrm would not work.
So I currently have a cmd button with "on click" event that tells lstListedAMHidden to select all records in the listbox.
The reason I tell it to select all instead of me manually selecting records to be sent to the report is because lstListedAM and lstListedAMHidden are told which records to display from another cmd button (not on this example). So the records displayed on the listbox have already been filtered.
Kinda long winded. Sorry.
I appreciate the help on this. I've been asking a lot of you for help on this and some have asked that I attach a sample of my db to display what I'm dealing with.
Just a basic explanation of the db. frmListedAM contains two listboxes (overlapped) and a cmd button.
The reason there are two listboxes with the same data is:
1. lstListedAM is in "multiselect = none"; lstListedAMHidden is in "multiselect = simple" and "visible = no"
2. lstListedAM (on my real db) has a code behind it that sends the selected record to a subform where the same record is displayed in detail vs seeing its basic information in the lsitbox. If I had lstListedAM in other than "multiselect = none", the code sending it to subfrm would not work.
So I currently have a cmd button with "on click" event that tells lstListedAMHidden to select all records in the listbox.
The reason I tell it to select all instead of me manually selecting records to be sent to the report is because lstListedAM and lstListedAMHidden are told which records to display from another cmd button (not on this example). So the records displayed on the listbox have already been filtered.
Kinda long winded. Sorry.