M
Michael Koenig
Howdy! I'm stumped!
Here's the scenario...
I've got a form where the user inputs an account number into a text box. I
then use that number as a parameter in a dynamic pass-through query (query
changes every time account number is changed), and write the results to a
temporary, un-named DAO recordset. That works just fine.
What I'm wanting to do is display the recordset data to the user in a
listbox - first off, is this even possible? I keep getting "Type Mismatch"
errors when I try to assign the recordset (rst), or the querydef (qdf) as the
list box's rowsource.
Here's my code -
Set qdf = CurrentDb.CreateQueryDef("", strSQL)
qdf.Connect = strConnect
Set rst = qdf.OpenRecordset()
This is where I get stuck...
Suggestions?
-- Michael
Here's the scenario...
I've got a form where the user inputs an account number into a text box. I
then use that number as a parameter in a dynamic pass-through query (query
changes every time account number is changed), and write the results to a
temporary, un-named DAO recordset. That works just fine.
What I'm wanting to do is display the recordset data to the user in a
listbox - first off, is this even possible? I keep getting "Type Mismatch"
errors when I try to assign the recordset (rst), or the querydef (qdf) as the
list box's rowsource.
Here's my code -
Set qdf = CurrentDb.CreateQueryDef("", strSQL)
qdf.Connect = strConnect
Set rst = qdf.OpenRecordset()
This is where I get stuck...
Suggestions?
-- Michael