A family of Microsoft relational database management systems designed for ease of use.
The RowSource property is a string. It can be set to
- The name of a table.
- The name of a query.
- A SQL string corresponding to a Select query.
A recordset is an object, not a string, so you can't set the RowSource property to a recordset.
You could create a string variable strSQL, set it to the SQL of the qryGetRelatedSPRFNumbers query and replace the SPRFNum parameter with strSelectedSPRFNum and the AppName parameter with strSelectedProviderApp. Then set the RowSource of the list box to strSQL.