Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2003
    Posts
    280

    Unanswered: Calendar Control: How do you send data to a textbox?

    I have a Calendar Control on a form and I was curious how I would use it to send data or the date I click on to a textbox..

  2. #2
    Join Date
    Apr 2004
    Posts
    173

    calendar event

    You need to code a click event for the calendar that will assign the calendar's value to the text box. like this

    Private Sub cal_Click()
    txtBox = cal.Value
    txtBox.SetFocus
    End Sub

  3. #3
    Join Date
    Apr 2003
    Posts
    280
    Thanks! Dang, I should have thought of that..

    Is there a way to have an arrow to scroll through the year rather than having a combo box for month and year? I'm assuming I have to update the Calender Control with a new version to get it. I have 9.0 now.

  4. #4
    Join Date
    Sep 2003
    Location
    MN US
    Posts
    313
    Not sure about the arrows, but here's some nice examples that may give you ideas.

    http://www.access-programmers.co.uk/...ad.php?t=62606

    TGIF

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •