DWUTKA at marlow.com
DWUTKA at marlow.com
Fri Jan 16 13:22:30 CST 2004
I would say that your best approach would be to build a Class that holds a date, time and boolean variable. Then have your timer fire, and look through a list of the classes in a collection. Have the Class determine if it has fired for that day (by comparing the date with Date() and seeing if the boolean is set or not. If it's the next day, unset the boolean. If the boolean isn't set, and the day is yesterday, then see if the time is greater then Time(). If no, do nothing, if yes change the date variable to today, and set the boolean. Drew -----Original Message----- From: Ariel Computer [mailto:arielcom at indosat.net.id] Sent: Friday, January 16, 2004 11:02 AM To: accessd at databaseadvisors.com Subject: [AccessD] Wake up Call Program Dear Friends, I really need some help for my problem :-( I want to create a small application that will dial a phone and play wav file to make a wake up call. I already found windows TAPI OCX to do this things. My problem just in timer event. Let say i have tblPhoneCall with this field : Date Time Extention 01/01/04 14:00 100 01/01/04 14:05 120 How can i use ontimer event or other trick so when the current time equal to tblphonecall.time the program will run phone dial function ? Please help. Thank you very much ! Hengky _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com