Use the parameter query as the RowSource for the listbox. You don't need
any VB. Unlike VB, Access listboxes and combos are bound and do not need to
be (although they can be) filled by a code loop.
> Hi, I'm using Access 2003
>
[quoted text clipped - 4 lines]
> pretty sure this is something I need to do in VB, but I'm not sure what.
> Thanks.
UnderSeven - 22 Feb 2007 21:51 GMT
So far I'm with you, but the part I'm not figuring out is how to grab the
selection from the Combobox to use as a parameter for the qry which populates
the listbox.
> Use the parameter query as the RowSource for the listbox. You don't need
> any VB. Unlike VB, Access listboxes and combos are bound and do not need to
[quoted text clipped - 8 lines]
> > pretty sure this is something I need to do in VB, but I'm not sure what.
> > Thanks.
John W. Vinson - 23 Feb 2007 06:52 GMT
>So far I'm with you, but the part I'm not figuring out is how to grab the
>selection from the Combobox to use as a parameter for the qry which populates
>the listbox.
Create a stored Query with a criterion like
=[Forms]![NameOfForm]![NameOfFirstCombo]
and base the listbox on this Query.
You'll need to Requery the listbox in the AfterUpdate event of the
combo box.
John W. Vinson [MVP]