I ger error 3061
Too few parameters, expected 5
Can anyone point me in the correct direction
I use similar code on tables and it works.
Thanks
Dim db As Database
Dim rst As Recordset
Dim strsql As String
strsql = " SELECT qryacctsinterface1.* FROM qryacctsinterface1; "
Set db = CurrentDb()
Set rst = db.OpenRecordset(strsql, dbOpenDynaset)
With rst
If .RecordCount > 0 Then
' some records
' movelast to get no of records
.MoveLast
' records found
MsgBox (rst.RecordCount)
.MoveFirst
' loop thru and do something
Do Until .EOF
' do something
.MoveNext
Loop
End If
.Close
End With
Too few parameters, expected 5
Can anyone point me in the correct direction
I use similar code on tables and it works.
Thanks
Dim db As Database
Dim rst As Recordset
Dim strsql As String
strsql = " SELECT qryacctsinterface1.* FROM qryacctsinterface1; "
Set db = CurrentDb()
Set rst = db.OpenRecordset(strsql, dbOpenDynaset)
With rst
If .RecordCount > 0 Then
' some records
' movelast to get no of records
.MoveLast
' records found
MsgBox (rst.RecordCount)
.MoveFirst
' loop thru and do something
Do Until .EOF
' do something
.MoveNext
Loop
End If
.Close
End With