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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delaying code execution, then send "Yes"

Status
Not open for further replies.

TechieJr

Instructor
Nov 13, 2002
71
CA
Hello All,

Our office tracks incoming phone calls, mail, etc. When entering a new call record, the log form looks up names of callers from an address book table. If the name of a caller is not in the list, the code in the "OnNotInList" property allows it to be added.

My question is this: Can a delay be coded in that automatically sends a "Yes" response after a 2-3 second delay? This would allow the operator an opportunity to say "No" but would then automatically go to the add caller form without further operator action if the new contact is to be added.

Looking forward to your helpful (as always) replies.
TechieJr.
 
Use the OnTimer event of the form. For example, prior to asking the question, set the TimerInterval to 3000 ms. If the user selects either yes or no, or the OnTimer event occurs, reset the TimerInterval to 0. In the OnTimer event, launch the code as if Yes had been selected.
 
How did you tie the phone line to your access database?
 
Hi FancyPrairie,

I believe romh is under the impression that our computer system is tied in with our phone line and automatically logs our incoming calls. That would be great, but for now we have a receptionist which manually enters all the pertinent info into the db after she answers the phone.

Thanks for your suggestion, FancyPrairie. Haven't had time to try it yet. Hopefully tomorrow. Will let you know how I make out.

Regards,
TechieJr.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top