Ok, I'm completely stumped...why does this code give me a type mismatch on the second line "Set rst = Me.RecordsetClose"?
This is the ENTIRE Sub:
Dim rst As Recordset
Set rst = Me.RecordsetClone
txtRecNu = Me.CurrentRecord
txtRecCnt = " of " & rst.RecordCount
If rst.RecordCount <= 1 Then
cmdNRecord.Enabled = False
cmdPRecord.Enabled = False
cmdFRecord.Enabled = False
cmdLRecord.Enabled = False
Else
cmdNRecord.Enabled = True
cmdPRecord.Enabled = True
cmdFRecord.Enabled = True
cmdLRecord.Enabled = True
End If
rst.Close
Any help or pointers would be greatly appreciated.
Oh, this is Access '97.
Thanks again,
Kyle
This is the ENTIRE Sub:
Dim rst As Recordset
Set rst = Me.RecordsetClone
txtRecNu = Me.CurrentRecord
txtRecCnt = " of " & rst.RecordCount
If rst.RecordCount <= 1 Then
cmdNRecord.Enabled = False
cmdPRecord.Enabled = False
cmdFRecord.Enabled = False
cmdLRecord.Enabled = False
Else
cmdNRecord.Enabled = True
cmdPRecord.Enabled = True
cmdFRecord.Enabled = True
cmdLRecord.Enabled = True
End If
rst.Close
Any help or pointers would be greatly appreciated.
Oh, this is Access '97.
Thanks again,
Kyle