Results 1 to 3 of 3
  1. #1
    Star Lounger
    Join Date
    Feb 2002
    Posts
    74
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Date Picker error message (2000)

    I'm using Microsoft Windows Common Controls-2.60(SP3), the C:WINNTSystem32mscomct2.ocx file, for a date picker control on one of my forms. I and another user have it installed on our C: drive, and it works fine for us. However, a third person is getting Error 2683 "There is no object in this control" messages when the form opens. They have it installed on a network drive, but I don't think that is part of the problem because I just tested it here on a network drive and it works fine there too. The reference is checked in their References box.

    The code I have behind the Form_Load event is:
    DateRangeSelectorBegin.Value = DateSerial(Year(Date), Month(Date) - 1, 1)
    DateRangeSelectorEnd.Value = DateSerial(Year(Date), Month(Date), 0)

    Any ideas why this is broken on this PC?

    Thanks,

    Randy

  2. #2
    5 Star Lounger
    Join Date
    Jul 2002
    Location
    Toronto, Ontario, Canada
    Posts
    1,139
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Date Picker error message (2000)

    Is the ocx registered properly on the PC?

    Start|Run...

    regsvr32 C:WINNTSystem32mscomct2.ocx

    to re register to ocx.
    --
    Bryan Carbonnell - Toronto <img src=/S/flags/Ontario.gif border=0 alt=Ontario width=30 height=18> <img src=/S/flags/Canada.gif border=0 alt=Canada width=30 height=18>
    Unfortunately common sense isn't so common!!
    Visit my website for useful Word, Excel and Access code, templates and Add-Ins

  3. #3
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Date Picker error message (2000)

    It works on the network drive if you already have it registered on your own PC.
    Charlotte

Posting Permissions

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