R
Robin Chapple
I am using XP and Access 2002
I have this code in OnCurrent event in an application:
Dim rst As Recordset, intCurRec As Integer, _
intTotalRec As Integer
Set rst = Me.RecordsetClone
With rst
If rst.RecordCount > 0 Then
.MoveLast
.MoveFirst
End If
End With
intCurRec = Me.CurrentRecord
If NewRecord = True Then
intTotalRec = rst.RecordCount + 1
Else
intTotalRec = rst.RecordCount
End If
I have copied it to a new application and i get
"Runtime error 13. Type mismatch"
What have I missed?
Thanks,
Robin Chapple
I have this code in OnCurrent event in an application:
Dim rst As Recordset, intCurRec As Integer, _
intTotalRec As Integer
Set rst = Me.RecordsetClone
With rst
If rst.RecordCount > 0 Then
.MoveLast
.MoveFirst
End If
End With
intCurRec = Me.CurrentRecord
If NewRecord = True Then
intTotalRec = rst.RecordCount + 1
Else
intTotalRec = rst.RecordCount
End If
I have copied it to a new application and i get
"Runtime error 13. Type mismatch"
What have I missed?
Thanks,
Robin Chapple