DWUTKA at marlow.com
DWUTKA at marlow.com
Sat Jan 17 02:48:49 CST 2004
Yikes, that is a relatively difficult task to hit out of the blue. If you don't find any other method, give me a holler. Drew -----Original Message----- From: Hengky Lie [mailto:arielcom at indosat.net.id] Sent: Friday, January 16, 2004 7:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Wake up Call Program How to build a class ? Sorry, my Access level still below than average :-( ----- Original Message ----- From: <DWUTKA at marlow.com> To: <accessd at databaseadvisors.com> Sent: Saturday, January 17, 2004 3:22 AM Subject: RE: [AccessD] Wake up Call Program > 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 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com