Set Form = Recordset

J

Jen

Hi Jake,

As far as I know, you can't set a form's recordsource to a
recordset, but what you can do is set the recordsource to
a SQL statement, like so:
------------------------------------
Dim strSQL as String
Dim rs as DAO.Recordset

strSQL = "SELECT * FROM TABLE_NAME WHERE ...."
Set rs = .....

Me.RecordSource = strSQL

Happy Coding,
Jen
 

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