M
Max Moor
Hi All,
I have a form in Access 2002 with a listbox and some textboxes. The
form's record source is dependent on the listbox's selection. In the
listbox's click routine, I requery the form.
The form's Open routine requeries the listbox to bring it to life, then
sets the first record to be selected, then requeries the form. Pretty
straightforward.
The code is:
Me!lstListings.Requery
Me!lstListings.Selected(0) = True
Me!Requery
When the form opens, the first record in the listbox is selected, but
the form's textboxes don't reflect that the form has been requeried. They
are blank as if "unhooked". If I click on the listbox, the form updates and
works fine after that.
Why is the form nor requerying on the listbox info on first open? Any
thoughts?
- Max
I have a form in Access 2002 with a listbox and some textboxes. The
form's record source is dependent on the listbox's selection. In the
listbox's click routine, I requery the form.
The form's Open routine requeries the listbox to bring it to life, then
sets the first record to be selected, then requeries the form. Pretty
straightforward.
The code is:
Me!lstListings.Requery
Me!lstListings.Selected(0) = True
Me!Requery
When the form opens, the first record in the listbox is selected, but
the form's textboxes don't reflect that the form has been requeried. They
are blank as if "unhooked". If I click on the listbox, the form updates and
works fine after that.
Why is the form nor requerying on the listbox info on first open? Any
thoughts?
- Max