Hi
I am using DAO to open recordsets in the following way
Dim db As Database
Dim rs As Recordset
Set db=CurrentDb
Set rs =db.OpenRecordset("my recordset"
My problem is that if "my recordset" is a table this works fine but I want to have the option of using this code for a query. Is there anyone who can advise me on where I am going wrong.
Cheers
dyarwood
I am using DAO to open recordsets in the following way
Dim db As Database
Dim rs As Recordset
Set db=CurrentDb
Set rs =db.OpenRecordset("my recordset"

My problem is that if "my recordset" is a table this works fine but I want to have the option of using this code for a query. Is there anyone who can advise me on where I am going wrong.
Cheers
dyarwood