G
Guest
Hi Everyone,
I have a form with a list box that contains two columns. The values for the
listbox are populated from a query. What is happening is this, when a user
selects a value in the listbox the rest of the controls get their values set.
The users can also duplicate an entry via a command button. When the commnad
button is pressed the new record is added and I call refresh on the list box
so that the new record will show up in the list. The problem is that I don't
want the users moving away from the current record that they are on and this
is happening when I call the refresh command. How can I get the value of a
listbox based on what is selected, refresh the listbox and set the selected
record to what was selected, based on the value of column two not the index
as trhe index changes when the new record is added.
TIA
I have a form with a list box that contains two columns. The values for the
listbox are populated from a query. What is happening is this, when a user
selects a value in the listbox the rest of the controls get their values set.
The users can also duplicate an entry via a command button. When the commnad
button is pressed the new record is added and I call refresh on the list box
so that the new record will show up in the list. The problem is that I don't
want the users moving away from the current record that they are on and this
is happening when I call the refresh command. How can I get the value of a
listbox based on what is selected, refresh the listbox and set the selected
record to what was selected, based on the value of column two not the index
as trhe index changes when the new record is added.
TIA