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

Simple date query

Status
Not open for further replies.

eussias

Programmer
Sep 25, 2001
97
0
0
AU
I have a text box on a form which has the current date in it. What I'm trying to do is, when the form loads, I want to check this date, and if it is a certain day of the month (eg. 10th), I want a msgbox to appear. I know this is probably very simple, but I cannot remember the exact code for this... Can anybody help?? :cool:
 
In the OnOpen event of the form use this code:

If Day(Date()) = 10 Then
MsgBox = "My gosh, 'tis the 10th day of the month!! :)"
End If Joe Miller
joe.miller@flotech.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top