Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

listbox refresh upon return from another form

Status
Not open for further replies.

ngreenleaf

Programmer
Jan 13, 2003
24
US
I have a form (call it form1) that opens another form (form2). Form1 has a listbox on it and the data in that list box is changed when leaving form2 and returning to form1. In particular, form2 allows the user to delete rows that would be displayed in that list box when the Done command button is clicked, and after the delete the form is closed and the original form made visible again.

What is happening is that when I return to form1 the deleted row says "#delete". It eventually goes away when I do an operation that requeries the listbox, but I can't find a way to requery the listbox when I return form1. I tried events such as on getfocus, on load, on current. I tried me.refresh for the form as well as requerying the listbox.

Ideas are much appreciated...
 
In your form's Activate event, try:

Me!YourListBoxName.Requery
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top