Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem calling for code...

Status
Not open for further replies.

Roosters

Technical User
May 14, 2000
61
AU
This will be hard to explain - so here goes

I have a calculated field on a sub form that tallies up hours that my on call staff has worked in the previous 24hrs. When this total exceeds 14 hrs I have a field that displays a warning. Now I have been asked for an audible warning as well. I have the code working to call for the sound but can't work out how to get the code to run when the 14 hrs is reached. i.e. where to put the code? I have tried the On Change of the Warning field and also the On Current of the sub form, but have failed. The recalculating of the times is done every 5 min via the On Timer of the main form - is this why the On Change won't call my code?

Thanks in advance Phil
 
Yes. Most events for fields require human interaction for them to occur. You need to capture the warning where the program is aware of it - in the Timer event.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top