The code below hides btnNxt whether ProdDate is today or not:
Private Sub Form_Current()
If Me!ProdDate = Date Then
Me!btnNxt.Visible = False
Else
Me!btnNxt.Visible = True
End If
On another form, I am using the following code which works fine:
Private Sub Form_Current()
If Me!Text1 = Date Then
Me!btnNextRec.Visible = False
Else
Me!btnNextRec.Visible = True
End If
I haven't mistyped the control names and the properties match almost exactly for both controls on both forms. Even the the properties in the tables behind the control source match.
Private Sub Form_Current()
If Me!ProdDate = Date Then
Me!btnNxt.Visible = False
Else
Me!btnNxt.Visible = True
End If
On another form, I am using the following code which works fine:
Private Sub Form_Current()
If Me!Text1 = Date Then
Me!btnNextRec.Visible = False
Else
Me!btnNextRec.Visible = True
End If
I haven't mistyped the control names and the properties match almost exactly for both controls on both forms. Even the the properties in the tables behind the control source match.