Results 1 to 4 of 4
  1. #1
    Join Date
    May 2006
    Posts
    178

    Unanswered: Calender Problem - Object Rquired

    Guys,

    Im using the calender code downloaded. however i am comming across a problem when i use this code in my database.

    here is where it gets stuck. in the show calender Sub

    Code:
    intX = ctlOriginator.Left + 50
    the system says Object required.

    I have set this sub when the combo control is selected in the mouse down option

    Code:
    Private Sub DateofWorkSt_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
    Set ctlOriginator = DateofWorkSt
    Call ShowCalender
    End Sub
    i have set the ctlOriginator to the combo box called "DateofWorkSt".


    Any ideas guys?


    Aboo

  2. #2
    Join Date
    May 2006
    Posts
    178
    Ive solved it, thank you...


    you see all i needed was for me to type my question on here and 5 mins later the answer comes to me...lol

  3. #3
    Join Date
    May 2006
    Posts
    178
    Actually there was one more thing....

    I have my calender control on a tab. however when i want to use it from another tab, the focus goes to the calender on the original tab...

    any way around this or do i have to create a seperate calender on each tab?

    Thanks

  4. #4
    Join Date
    Nov 2007
    Location
    Adelaide, South Australia
    Posts
    4,049
    Either place a calendar control on each tab, or one outside the tab control.
    Owner and Manager of
    CypherBYTE, Microsoft Access Development Specialists.
    Microsoft Access MCP.
    And all around nice guy!


    "Heck it's something understood by accountants ... so it can't be 'that' difficult..." -- Healdem
    "...teach a man to code and he'll be frustrated for life! " -- georgev

Posting Permissions

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