Results 1 to 4 of 4

Thread: Calendar

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2003
    Location
    India
    Posts
    318

    Calendar

    I work on Access. I have a MS Calendar Control and two text boxes. When I click on the Calendar control, I should get the date displayed in the text box on which the cursor is. Is this possible?
    Thanks in advance.

  2. #2
    Hyperactive Member
    Join Date
    Mar 2002
    Posts
    424
    well when you click on the calendar control no textboxes will have the focus but you can assign the value of the calendar control to a textbox on each click if you like.

    Private Sub ActiveXCtl0_click()
    Text1 = ActiveXCtl0
    End Sub

    for example.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2003
    Location
    India
    Posts
    318
    But I have two text boxes from which I get the beginning date and the ending date. The code you gave is applicable only for one text box. How do I set the second text box?
    Thanks.

  4. #4
    Hyperactive Member
    Join Date
    Mar 2002
    Posts
    424
    Where is the second date coming from?

Posting Permissions

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



Click Here to Expand Forum to Full Width