Hi all
I'm trying to populate a listbox with the result of a parameterized query. This means I can't use the properties box to set the list box's query, coz I keep getting the Parameter Value dialog box, but I want to set the parameter in vba.
How do I tell the listbox what its RowSource is when I'm using a parameterized query? The RowSourceTypes don't include QueryDef (only Table/Query) so
doesn't work.
Can someone show me how I populate the listbox from a parameterized query.
tia,
mcalex
I'm trying to populate a listbox with the result of a parameterized query. This means I can't use the properties box to set the list box's query, coz I keep getting the Parameter Value dialog box, but I want to set the parameter in vba.
How do I tell the listbox what its RowSource is when I'm using a parameterized query? The RowSourceTypes don't include QueryDef (only Table/Query) so
Code:
lstNames.RowSource = qdfNames
Can someone show me how I populate the listbox from a parameterized query.
tia,
mcalex