downhilljon
Registered User.
- Local time
- Tomorrow, 00:11
- Joined
- Jun 14, 2007
- Messages
- 31
Hi,
I have a form with two List boxes, each linked to a table. The purpose of the form is to allow users to add new data into the tables the list boxes are reading from. To do this, there is a text box and button for each list box, to add new data.
The data from the text box adds to the table fine (through ADO and recordset methods), and at the end of my 'on click' event code is a me.listbox.requery line to update the new entry immediately into the listbox.
Most of the time, it doesn't update (it's not consistent).The table updates, but after clicking the button, the list box remains the same. Oddly enough, if I then click the button to add an entry to the other listbox, the first listbox then updates... weird.
Not sure if I should be moving my Me.listbox.requery line to another event are (after update???) to get the update happening at the required time?
Thanks for any help,
Jon
I have a form with two List boxes, each linked to a table. The purpose of the form is to allow users to add new data into the tables the list boxes are reading from. To do this, there is a text box and button for each list box, to add new data.
The data from the text box adds to the table fine (through ADO and recordset methods), and at the end of my 'on click' event code is a me.listbox.requery line to update the new entry immediately into the listbox.
Most of the time, it doesn't update (it's not consistent).The table updates, but after clicking the button, the list box remains the same. Oddly enough, if I then click the button to add an entry to the other listbox, the first listbox then updates... weird.
Not sure if I should be moving my Me.listbox.requery line to another event are (after update???) to get the update happening at the required time?
Thanks for any help,
Jon