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

Calendar Control 11 not working

Status
Not open for further replies.

gsgriffin

Technical User
Oct 17, 2002
27
0
0
Its been a couple years since I put an Access database together, and am working on a very simple one right now. This is super easy, but something is stopping the calendar from working at all. With a textbox of StartDate and Calendar control of Calendar1, this is the simple code:

Private Sub StartDate_Enter()
Calendar1.SetFocus
End Sub
Private Sub Calendar1_Click()
StartDate.Value = Calendar1.Value
End Sub

What am I missing to simply allow the calendar to put the date when clicked? I'm able to change the month and year, but clicking on the calendar does nothing. Doesn't even higlight the day I'm clicking on.
 
I found that the calendar control was not to friendly in manipulating the value or reading it.

My workaround was to make an invisible textbox bound to the same field as the calendar control. Then I could set and read the text box and everything seemed to work. I think I am using an earlier version of the Calendar control but I'd still try this workaround.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top