If null then Blue

G

Guest

Hello.
I have a subform with the following fields:
ScheduledTimeFrame
ActualLoginTime
ActualLogoutTime

I need to add Conditional formatting to show something like:
If current time is greater than "ActualLoginTime" and "ActualLogoutTime" is
greater than the current time or is Null then turn blue.

Is this possible?

Your help is greatly appreciated.
Iram/mcp
 
M

Marshall Barton

Iram said:
I have a subform with the following fields:
ScheduledTimeFrame
ActualLoginTime
ActualLogoutTime

I need to add Conditional formatting to show something like:
If current time is greater than "ActualLoginTime" and "ActualLogoutTime" is
greater than the current time or is Null then turn blue.


You can do a lot with Conditional Formatting (View menu) by
selecting the Expression is option. Try using an expression
something like:

[CurrentTime] > [ActualLoginTime] Or [CurrentTime] <
[ActualLogoutTime] Or IsNull([CurrentTime])

I have no idea what CurrentTime is, since it can't mean the
time on the clock, it must be something else. The above
supposes that it's a date/time value in a text box on the
form.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top