Calendar ActiveX Control

Calendar ActiveX Control
Activate

 
Occurs when the calendar activate. If you need load the day text before a calendar is displayed for the first time, you need doing in this event.Do not load the day text in Form load event.
void Calendar1_Activate()

 

No Parameter

Return Value

 No return value.

Example

   

Visual Basic Syntax
Private Sub Calendar1_Activate()
 Set TRst = CurrentDb.OpenRecordset("SELECT * from daytable", dbOpenSnapshot)
If TRst.RecordCount > 0 Then
   Do While Not TRst.EOF
           Calendar1.SetText TRst("selectday"), TRst("info")
           TRst.MoveNext
   Loop
End If
End Sub