J
Jim Shaw
BlankIn another post I saw this code with the SQL SELECT statement in the OpenRecordset.
Dim dbCurr As Database
Dim rsCurr As DAO.Recordset
Dim strSQL As String
Set dbCurr = CurrentDb()
Set rsCurr = dbCurr.OpenRecordset("SELECT * FROM MyTable")
If this works (which I assume it does), why would one use the dynamic QueryDef facility for unnamed queries?
-Jim
Dim dbCurr As Database
Dim rsCurr As DAO.Recordset
Dim strSQL As String
Set dbCurr = CurrentDb()
Set rsCurr = dbCurr.OpenRecordset("SELECT * FROM MyTable")
If this works (which I assume it does), why would one use the dynamic QueryDef facility for unnamed queries?
-Jim