To enable buttons

sofie

Registered User.
Local time
Today, 15:29
Joined
Jan 17, 2002
Messages
12
I thougt this was the code, to enable a button, when there is no previous or next button. But it doesn't work.

Who can help me?

Private Sub Form_current()
If IsNull(Me.Code) Then
cmdPrevious.SetFocus
cmdNext.Enabled = False
Else
cmdNext.Enabled = True
End If
End Sub
 

Users who are viewing this thread

Back
Top Bottom