If I set the rowsource property to the query name, when the form opens I get the parameter values dialog, but I want to pass the params from code.
If I create a querydef, I can pass the parameter in, but I don't know how to get the records into the listbox. I have tried
Expand|Select|Wrap|Line Numbers
- lstNames = qdfNames.sql
Expand|Select|Wrap|Line Numbers
- lstNames.recordset = qdfNames.OpenRecordset;
Expand|Select|Wrap|Line Numbers
- rstNames = qdfNames.OpenRecordset
- lstNames = recordSetNames.getRows;
can anyone point me in the right direction?
cheers