R
Robert Solomon
Hi. I am trying to copy code from an Access 97 database into an Access
2002 database.
Private Sub Form_Open(Cancel As Integer)
Dim rst As Recordset, lastcnt As Integer
Set rst = Me.RecordsetClone <-- error occurs at this line
rst.MoveLast
lastcnt = rst.RecordCount
Set rst = Nothing
DoCmd.GoToRecord acForm, "Masterform", acGoTo, lastcnt - 6
End Sub
I am getting a type mismatch at the Set rst = Me.RecordsetClone
statement. Searching the help files give me examples that look exactly
like what I'm doing. So why am I getting this error?
Thanks,
Rob
2002 database.
Private Sub Form_Open(Cancel As Integer)
Dim rst As Recordset, lastcnt As Integer
Set rst = Me.RecordsetClone <-- error occurs at this line
rst.MoveLast
lastcnt = rst.RecordCount
Set rst = Nothing
DoCmd.GoToRecord acForm, "Masterform", acGoTo, lastcnt - 6
End Sub
I am getting a type mismatch at the Set rst = Me.RecordsetClone
statement. Searching the help files give me examples that look exactly
like what I'm doing. So why am I getting this error?
Thanks,
Rob