
Signature
Wayne Morgan
MS Access MVP
> Hello.
>
[quoted text clipped - 16 lines]
> Thanks
> -Mark
>I take it that you are adding an entry because you went to the listbox and
>the entry wasn't there. If that is the case, manually type the entry into
>the listbox and let the NotInList event activate.
This is a listbox control, not a combobox. I am adding data to the database,
and that data would be returned by the listbox's underlying rowsource.
I want the listbox to refresh and display the new data. That doesn't
happen, not even when I execute the listbox's Requery method.
Thanks
-Mark
Allen Browne - 17 Feb 2006 07:19 GMT
Mark, what is the timing of this?
How are you adding record's to the list box's RowSource table?
- Executing an Append query?
- Adding to a Recordset? - ADO or DAO?
- Entering into a Form?
Are you sure the record has been written before the requery? For example, is
it still in the form (not saved) when the Requery happens?
Does adding a DoEvents give it the chance to catch up?

Signature
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
>>I take it that you are adding an entry because you went to the listbox and
>>the entry wasn't there. If that is the case, manually type the entry into
[quoted text clipped - 5 lines]
> I want the listbox to refresh and display the new data. That doesn't
> happen, not even when I execute the listbox's Requery method.
Mark - 17 Feb 2006 07:27 GMT
Sorry Allen, it was a goof on my part. My database insert
code wasn't doing what I thought it was doing.
-Mark
Mark - 17 Feb 2006 07:26 GMT
Sorry, the problem is not what I thought it was. Apparently my code
wasn't applying the update to the database, so there was nothing
new for the listbox to retrieve when I executed its Requery method.
Thanks for your help.
-Mark
Wayne Morgan - 17 Feb 2006 17:15 GMT
> This is a listbox control, not a combobox.
Sorry, bad reading.

Signature
Wayne Morgan
MS Access MVP
>>I take it that you are adding an entry because you went to the listbox and
>>the entry wasn't there. If that is the case, manually type the entry into
[quoted text clipped - 8 lines]
> Thanks
> -Mark