checking for the first or last record

S

segurarl

I have a custom "previous" and "next" buttons.

How can I disable them when I reach the first or last record?

The form does now allow for additions.

Thank you!
 
K

Klatuu

If Me.CurrentRecord = Me.Recordset.RecordCount Then
'It is the last record
End If

If Me.If Me.CurrentRecord = 1 Then
'It is the first record
End

This may not work pre A2K
 
Top