PDA

Click to See Complete Forum and Search --> : Calendar controll question.....


Smie
Jan 8th, 2000, 07:30 AM
Is there A way I can place text on a certain day, and if so, is there a way i can set every sunday to contain the same text? Like the same thing happens every sunday, and have the day say that? I appreciate any help.

Smie
Jan 9th, 2000, 12:14 AM
Thanks a lot!

casparas
Jan 9th, 2000, 11:09 AM
Yes there is a way

[This message has been edited by casparas (edited 01-09-2000).]

casparas
Jan 9th, 2000, 11:23 AM
you'll need

1 textbox
1 calendar



Private Sub Calendar1_Click()

dayoftheweek = Weekday(Calendar1.Value, firstdayofweek = vbSunday)

If dayoftheweek = 7 Then
Text1 = "you have chosen the sunday"

End If

End Sub