Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to refresh listbox

What's the best way to refresh a list box in MS Access? The way I have tried it doesn't seem to work :-/

This is my current method (onClick event of a button on the same form):

Me.orders.Requery

I have also tried

orders.Requery

and

Forms!currentOrders.orders.Requery

but none of them seem to refresh the list box's contents - I see no new items, even though I know that there are some. Closing off the form, and then re-opening it does show the new items, however.

like image 429
Joe Bloggs Avatar asked Jun 01 '26 14:06

Joe Bloggs


1 Answers

You could try and requery the form first and then requery the listbox

like image 68
SwDevMan81 Avatar answered Jun 03 '26 09:06

SwDevMan81