Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...This has been the MOST helpful forum that I have been a part of and I want to say thank you. The tips, tricks and helpful advice that you all contribute to have been lifesavers in many instances..."

Geography

Where in the world do Tek-Tips members come from?
integritycare (TechnicalUser)
3 Jul 12 0:42
Hi all,

Just a question on how to get a form to open automatically when a date becomes due.
I have a form which has staff data, such as certifciates, comptencies etc.
One of the fields on this is "DateDue".. I want this form to open when the date becomes due.ie If staff competencies are due on septmber the 1st 2012, then for that form to open so that the HR person can view the required data.

Many thanks,

Integrity
missinglinq (Programmer)
10 Jul 12 12:00
From an Autoexec Macro, which runs when the app first opens, you can run the DCount Function against the Table that holds your data, and if it returns a count greater than Zero, open the Form based on the same Table, and only return Records for those employees who have re-certifications that are due/overdue.

The problem with this approach, of course, is that HR may not want to bother with this when they first open the database, and nobody wants HR to start off the day being grumpy! They could minimize the Form until they're ready to it, but that requires that they actually minimize it and remember, before the end of the workday, that they haven't attended to this task!

What I would do, well, actually, what I have done, for CPR recerts, is have a Form that opens in Datasheet View and use Conditional Formatting to flag all recerts that are due/overdue by changing the Date Field to Red.

In the Conditional Formatting you'd use something like this:
  • Under Condition1 select Expression Is
  • In the box to the immediate right of this enter[DueDate]<=Date()
  • Select the Background/Foreground Colors you want
  • Click on OK

The Missinglinq

Richmond, Virginia

The Devil's in the Details!

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close