Re: Conditional Format logic



On Wed, 11 Apr 2007 15:30:01 -0700, Iram <Iram@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:

Hello.

I have a subform with the following fields:

Date (tied to the parent table and Form)
Name
LoginTime
LogoutTime

I would like to create conditional formatting on the login and logout fields
that will show folks how many people are logged in. The logic would be
something like: if the current time is between the LoginTime and LogoutTime
then make these fields Blue.
What I need to do is regulate the amount of concurrent users to 4 that are
accessing a resource. They are supposed to go into this Database, put there
name and login/logout times. The problem is when you have 20 records with
many Login and Logout times, things can get really confusing.
I would like only the records that currently have a login and logout time
that is active, i.e. if it is 11am then I want all records that have
something like 10am-12pm or 7am-2pm to show up as Blue.

Sure. Use "Expression Is" as the condition, and

Time() >= [LoginTime] AND Time() <= [LogoutTime]

Note that if you're storing pure time values in these fields, then it's
ambiguous whether 11:00 am means 11:00am today, or yesterday, or eight years
ago; all Time() values are times on December 30, 1899, the base of date/time
fields. You may want to store the current DATE AND TIME using Now() in the
Logintime and Logouttime fields, and use Now() instead of Time() in the
expression.

John W. Vinson [MVP]
.



Relevant Pages

  • Re: OWA does not logout for IE 6.0 - Security Issue
    ... Configure the /exchange directory to use basic authentication and it will ... I have read the posts about the problems with OWA and the login prompt ... But now I need to login as a different user, so I click the Logout ... will leave behind a pre-logged in Exchange account. ...
    (microsoft.public.exchange.setup)
  • Referencing variable in calling class?
    ... I assume because the cookie destruction is being sent down in that page ... when that page renders it still appears as if the user is logged ... So, I thought perhaps as part of my logout routine, I could set a variable ... whether or not it displays the 'login' url or the 'logout' url. ...
    (php.general)
  • Re: =?iso-8859-15?Q?Doch_noch_mal_ne_grunds=E4tzliche_Frage_?= =?iso-8859-15?Q?dazu?
    ... Es funktioniert in beiden Fällen - beim ersten login. ... logout abmelde, und danach wieder eine neue Verbindung herstellen will, ... Port 10000, login, und sofortigem Logout ist erst mal Feierabend. ... drueckt, dann beim Login-Prompt aber keinen Usernamen eingibt, ...
    (de.comp.os.vms)
  • Re: Unique identify a user-session
    ... > login-time and the logout time to a file. ... Because a user could login at ... > At login and logout of a user we run a small programm which writes the> login-time and the logout time to a file. ... > Does windows assign every logged-in user something like a unique ID> which could be used? ...
    (microsoft.public.windows.server.general)
  • Performing tasks on user login/logout
    ... I want to perform some tasks on users login and logout. ... but I seem to only find login/logout info in the MSFT ... It uses the WinLogon Notification Package, ...
    (microsoft.public.platformsdk.security)