If Statement (1 Viewer)

DebbieV

Registered User.
Local time
Today, 14:38
Joined
May 7, 2002
Messages
63
I am trying to create a If statement that will dim out a text box. I typed the following code
If [Date_Returned]> 5/31/2002 then
txtMaryland20.Enabled = False
End If
I complied this and no errors pop up. When I entered data in with a returned date greater than 5/31/02 nothing different happens. It will not dim the Maryland20 text box.
I also had put in Dim ctl As Control
and Dim txtMaryland 20.
Not sure why this is not working, Please help
 
R

Rich

Guest
If [Date_Returned]> #05/31/2002# then
Me.txtMaryland20.Enabled = False
End If
 

Users who are viewing this thread

Top Bottom