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