Results 1 to 5 of 5
  1. #1
    5 Star Lounger
    Join Date
    Mar 2001
    Posts
    989
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Switch ControlSource (2003)

    I'm using the On Enter event for a textbox, who's Control Source is EndDate, to set it as the Control Source for a Calendar Control on the form. It does change the controlsource, but doesn't then display the correct date in the control. How can I force it to update the displayed value? Thanks, Andy

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Switch ControlSource (2003)

    What exactly do you mean by "to set it as the Control Source for a Calendar Control on the form"?

  3. #3
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Switch ControlSource (2003)

    And why do you use the On Enter event of the text box? Wouldn't it be easier to set the control source in design view?

  4. #4
    5 Star Lounger
    Join Date
    Mar 2001
    Posts
    989
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Switch ControlSource (2003)

    I've got an EndDate as well as a StartDate field and I want to use one calender control for both..

  5. #5
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Switch ControlSource (2003)

    I'd put two command buttons next to the calendar, one to set the StartDate and the other to set the EndDate.

Posting Permissions

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