Problem with my navigational command buttons

hammerva

Registered User.
Local time
Today, 18:55
Joined
Dec 19, 2000
Messages
102
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
 
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
 

Users who are viewing this thread

Back
Top Bottom