markgrizzle
Programmer
My form allows the user to do this...
Select a record from listbox 2
Click link button to...
1. add listbox 2 record to link table
2. requery listbox 1 to include new link table record
3. requery listbox 2 to exclude new link table record
What happens is...
The requery doesn't include the new record on listbox 1, nor does it remove it from listbox 2.
I tried to solve this using... listbox.rowsource=listbox.rowsource
listbox.requery
listbox.refresh
adding a requery button to requery the listboxes
Comments...
My form and listboxes are unbound
The requery button works on the 2nd or 3rd attempt
The requery button and link button call the same code
Putting a 3 second loop before the requery code works, but is too slow for my users.
Has anyone faced this before? And more importantly, can anyone suggest a solution?
Thanks in advance,
Mark
ps - I've read the excellent faq on listbox events, though the author's name escapes me.
Select a record from listbox 2
Click link button to...
1. add listbox 2 record to link table
2. requery listbox 1 to include new link table record
3. requery listbox 2 to exclude new link table record
What happens is...
The requery doesn't include the new record on listbox 1, nor does it remove it from listbox 2.
I tried to solve this using... listbox.rowsource=listbox.rowsource
listbox.requery
listbox.refresh
adding a requery button to requery the listboxes
Comments...
My form and listboxes are unbound
The requery button works on the 2nd or 3rd attempt
The requery button and link button call the same code
Putting a 3 second loop before the requery code works, but is too slow for my users.
Has anyone faced this before? And more importantly, can anyone suggest a solution?
Thanks in advance,
Mark
ps - I've read the excellent faq on listbox events, though the author's name escapes me.