View Full Version : Problem with my navigational command buttons


hammerva
12-19-2000, 05:31 PM
I am not sure what I am doing wrong here. I have a form that contains a previous record button and a
next record button. I have both enabled properies set to Yes. In the form load section; I have the
following code:

If Me.CurrentRecord = 1 Then
Me.Previous_Record.Enabled = False
Else
Me.Previous_Record.Enabled = True
End If

If Me.RecordsetClone.RecordCount = 1 Then
Me.Next_Record.Enabled = False
Else
Me.Next_Record.Enabled = True
End If

I can't seem to get the Next_Record button from enabling though. No matter how many records are on
the table. And the thing that bothers me is when I put a breakpoint and debug it then darn thing works.

Any ideas what I am doing wrong.

Thanks

R. Hicks
12-23-2000, 10:08 AM
If your email address is correct, I sent you a sample db, in Access 97, that should help make things more clear to you.

HTH & Merry Christamas,
RDH