S
Simon
When I execute the following code, I receive the a run-time error 3061 and
when I debug, the line in question is: Set rst = qdf.OpenRecordset()
Looking at web sites, I am using the correct syntax.
Please can anyone help me - thanks
Dim dbsCurrent As Database
Dim qdf As QueryDef
Dim rst As Recordset
Dim mSql As String
Set dbsCurrent = CurrentDb
mSql = "SELECT ..."
Set qdf = dbsCurrent.CreateQueryDef("", mSql)
Set rst = qdf.OpenRecordset()
rst.MoveFirst
Simon
when I debug, the line in question is: Set rst = qdf.OpenRecordset()
Looking at web sites, I am using the correct syntax.
Please can anyone help me - thanks
Dim dbsCurrent As Database
Dim qdf As QueryDef
Dim rst As Recordset
Dim mSql As String
Set dbsCurrent = CurrentDb
mSql = "SELECT ..."
Set qdf = dbsCurrent.CreateQueryDef("", mSql)
Set rst = qdf.OpenRecordset()
rst.MoveFirst
Simon