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

Color Activex Calendar Control in Access Form 1

Status
Not open for further replies.

chrisbee

Technical User
Oct 13, 2001
67
GB
Hi

The ActiveX (MSCAL.Calendar.7) Calendar Control. What I am trying to do is change the colour of all the Saturday dates - or better still only allow the Saturdays to be clicked on. Do I have a hope?
 
Can not Change the colors. But you could do something like this

Private Sub Calendar5_Click()
If Not Weekday(Calendar5) = 7 Then
MsgBox "Can only choose Saturdays."
Calendar5.Value = Calendar5.Value + (7 - Weekday(Calendar5))
End If
End Sub

Pops up a message and then moves it to the first Saturday.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top