Private Sub Form_Open(Cancel As Integer)
If Me.countdown = Null Then
Me.countdown.Visible = False
Me.countdowntxt.Visible = False
Me.enddate_label.Visible = False
End If
I have this simple code which is if a record has no data in the countdown textbox then the following are not visible..
but it is not working..
any ideas?
I must be making a really stupid error somewhere on this!
I have it in a onopen event..
I also have this in the code and this works perfectly..
If Me.countdown <= 0 Then
Me.countdown.Visible = False
Me.countdowntxt.Visible = False
Me.enddate_label.Visible = True
End If
the countdown textbox is derived from a query that the form is based on..
If Me.countdown = Null Then
Me.countdown.Visible = False
Me.countdowntxt.Visible = False
Me.enddate_label.Visible = False
End If
I have this simple code which is if a record has no data in the countdown textbox then the following are not visible..
but it is not working..
any ideas?
I must be making a really stupid error somewhere on this!
I have it in a onopen event..
I also have this in the code and this works perfectly..
If Me.countdown <= 0 Then
Me.countdown.Visible = False
Me.countdowntxt.Visible = False
Me.enddate_label.Visible = True
End If
the countdown textbox is derived from a query that the form is based on..