Refreshing an listbox

N

Nick Mirro

I have a listbox sitting in a subform who's rowsource criteria is the
subform's current record. It lists all "task names" for the parent form
current record.

When I change records in a linked grandparent form, all of the subform
fields update... except the listbox.


I tried: Me![lstAllTasks].Requery

for the subform "on dirty" and "after update"
and requery with full path for the primary control in the
grandparentform.


How can I get the listbox to automatically update when related records in
its form cycle?
 
N

Nick Mirro

Got it. Thanks much.


Sandra Daigle said:
You need to use Current event of the subform to requery the listbox.

--
Sandra Daigle
[Microsoft Access MVP]
For the benefit of others please post all replies to this newsgroup.


Nick said:
I have a listbox sitting in a subform who's rowsource criteria is the
subform's current record. It lists all "task names" for the parent
form current record.

When I change records in a linked grandparent form, all of the subform
fields update... except the listbox.


I tried: Me![lstAllTasks].Requery

for the subform "on dirty" and "after update"
and requery with full path for the primary control in the
grandparentform.


How can I get the listbox to automatically update when related
records in its form cycle?
 

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