General information
Category:
Forms & Form designer
Title:
Listbox overwrites in a page frame
As the title suggests, I'm encountering a problem with listbox contents being overwritten while changing pages in a page frame. The listboxes have the same name and they are both multi-selectable. Rowsourcetype for both is an SQL select - the selects are triggered by a click event on both pages. However, the navigation method through the pages (VCR-like buttons) automatically calls the click events depending on which page is coming up. After stepping through the debugger, here's the basic scenario: page 1 loads up O.K. Everything that should be in listbox1 is there. I multiselect 40 or so items from the list. Then, I hit the "next" button to head to the next page. The click event for "next" calls a click event to populate listbox2. As soon as listbox2 is populated, however, listbox1 contains everything that is in listbox2. (they are quite different SQL selects) Why does this happen? These are separate listbox objects on separate pages with the same name. I highly doubt name collisions are occuring here. Help! Thank you.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only