I'm trying to have a calendar load on todays date and call the click event when it loads. I'm using the calendar to populate some text boxs and when a manually click the date it works fine. Now I just want todays date to be clicked and selected automatically so the text boxs are populated as soon as it loads with todays information.
Is what I tried, I have read alot of posts on here and haven't been able to find a solution.
This code works fine and changes the textboxs when I click a new date on the calendar.
Any help would be great.
Code:
Private Sub Form_Load()
Me.[GenCal].Value = Date
Me.[GenCal].Date = Click
End Sub
Code:
Private Sub GenCal_Click()
Me.service = DLookup("TechName", "Q_Service_Tech_On_Call")
Me.servicecell = DLookup("CellNumber", "Q_Service_Tech_On_Call")
End Sub
This code works fine and changes the textboxs when I click a new date on the calendar.
Any help would be great.