If today greater than Date

Mannyf50

New member
Local time
Today, 18:09
Joined
Jul 30, 2009
Messages
6
Hey guys! just have a quick question for ya, im trying to set up some vba code to run an if statement comparing 2 dates i.e, if today is greater than a specified date disable these boxes, any ideas?
 
You don't need IF. Enabled is a boolean property of a control and the result of your date comparison logic is also boolean. Assign the result of your logic directly to the property in question...
Code:
me.box.enabled = NOT Date() > specifieddate
Cheers,
Mark
 

Users who are viewing this thread

Back
Top Bottom