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
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