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

Like a Reminder

Status
Not open for further replies.

WaZda

Programmer
Joined
Jun 22, 2007
Messages
48
Location
GB
hi everybody,
am developping an application in which i have to use a kind of reminder strategie. the application saves the date and a message in the database, and on due date, the message is sent to the screen of the user. But i just don't know how to be checking for the date. Coz it has to be done automaticaly. Just like a calendar reminder.
Can anyboday help me with this. I really need so code for doing this.

WaZda
 
Code:
If rst!DateFromDB = [blue]Date[/blue] Then
    MsgBox rst!MessageFromDB
End If

Have fun.

---- Andy
 
Andy's code of course works, but assumes that you're using ADO Recordsets. Are you?

Bob
 
yeah, that's what am using
 
Cool, I'd say you have your answer then. :-)
 
If you are using ADO then Andy's code should work just fine. Just use it within a Timer with a suitable Interval.


-V
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top