Refresh/Requery Listbox from subForm

R

Ripper

I have a subform that I use to delete records that are not needed (usually
duplicates). Deleting the record is no problem, but once the record is
gone, the reference is still in the non-refreshed listbox. How do use VB to
refresh the listbox?

Form: IssEditNew/lstInISS
Subform: subISSEditMain
 
D

Dirk Goldgar

In
Ripper said:
I have a subform that I use to delete records that are not needed
(usually duplicates). Deleting the record is no problem, but once
the record is gone, the reference is still in the non-refreshed
listbox. How do use VB to refresh the listbox?

Form: IssEditNew/lstInISS
Subform: subISSEditMain

If the list box is on the main form, but you need the code to requery to
run on the subform, then use and expression like this:

Me.Parent!YourListBoxName.Requery
 

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

Top