If 2 conditions are met then

aymanmb

Registered User.
Local time
Today, 04:36
Joined
Jan 28, 2007
Messages
96
I am trying to write a code that will enable an event to happen if 2 conditions are true, something like:

If [DueDate] >= [CurrentDate] And [EndDate] is Null Then
Event ..... take place

I tried above and did not work

it works only if write one condition of above

how can I set it up correctly
 
If ([DueDate] >= [CurrentDate] And Nz([EndDate],"") = "") Then
 
works great, thanks a lot

what if I want if above are met then [DueDate] color is red

how to write it
 
If ([DueDate] >= [CurrentDate] And Nz([EndDate],"") = "") Then
.
.
.
Else
me.[control name].ForeColoer=[Color Number]
 
what is the color number to change the font to red
 

Users who are viewing this thread

Back
Top Bottom