Make Button Disappear under conditions

M

magmike

I having a problem with an If Then Statement:

I have a button (SeeAllContacts) on the Tab (Contacts) that I am
trying to either hide or Disable when the IDNo. field is empty. I am
using the On Current function for the form, but it is not working.

Here's the code:

If IDNo = "" Then
Me.SeeAllContacts.Enabled = False
End If

Thanks in advance!
 
A

akphidelt

Try doing this... and im not sure if it works on the on current function. I
usually use
after update or on load

If IsNull(Me.IDNo) Or Me.IDNo = "" Then
Me.SeeAllContacts.Visible = False
Else
Me.SeeAllContacts.Visible = True
End If
 
T

Tom Wickerath

Top