refresh list box

A

Andrew

Hello

I have a customer form that has tabs. On tab A you can
access a popup form to enter data, then the data is
displayed in a listbox on tab c. How do I get the
information to refresh to my listbox when the popup form
is closed? I've added the standard refresh code to the
close button, but the listbox does not get refreshed
until I leave the customer record altogether.

Thanks!
 
L

Larry Linson

I have a customer form that has tabs. On tab A you can
access a popup form to enter data, then the data is
displayed in a listbox on tab c. How do I get the
information to refresh to my listbox when the popup form
is closed? I've added the standard refresh code to the
close button, but the listbox does not get refreshed
until I leave the customer record altogether.

I think you are looking for "Requery" to get newly-added records.
Check VBA Help for "Refresh" and "Requery".

Larry Linson
Microsoft Access MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

refresh listbox 1
refresh list box 1
Listbox SQL problem 2
Requery not working 8
Best way to refresh form data 1
synchronizing forms on a tab control 1
passing information between forms 2
Access Form Refresh 1

Top