Bind ADO Recordset (filtered) to a Listbox

J

JimS

I know I read somewhere you can do this...

I have an ADO recordset built on a highly complex and slow query. I've
filtered it and I want to assign the filtered query as the ?Control Source
?RowSource? to a listbox which will display 3 or 4 of the 10 or so fields as
a debugging tool. How do I assign this run-time only ADO recordset to the
listbox?
 
B

Brendan Reynolds

JimS said:
I know I read somewhere you can do this...

I have an ADO recordset built on a highly complex and slow query. I've
filtered it and I want to assign the filtered query as the ?Control Source
?RowSource? to a listbox which will display 3 or 4 of the 10 or so fields
as
a debugging tool. How do I assign this run-time only ADO recordset to the
listbox?


You need to assign the recordset to the Recordset property of the control.
Here's a link to the on-line help topic ...

http://office.microsoft.com/client/...ESS.DEV&lcid=2057&QueryID=ZBbDrM-ks0&respos=1

This isn't something that I've ever done in practice, so I can't say how
well it works.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top