Results 1 to 5 of 5
  1. #1
    mp3909 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Feb 2018
    Posts
    154

    mscomct2.ocx

    Has anyone ever encountered an error message saying "Your Microsoft Access database or project contains a missing or broken reference to the file 'mscomct2.ocx' version 2.0" ?

    I have spent the last 2 weeks creating an Access database with loads of VBA code built in it and it has been working fine on my computer.

    As soon as I tried opening it on someone else's computer, I get that error message.

    It then opens up the VBE editor and directs me to the part where I have used "Date" in my code and says missing reference "Microsoft Windows Common Controls - 2 6.0"

    Please, if anyone knows how I can fix this, that would be so much appreciated.



    Thank You!

  2. #2
    Minty is offline VIP
    Windows 10 Access 2016
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,144
    What version have you developed this in and what version are you using on the other computer?

    Also have you used any Active X componenets?
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  3. #3
    mp3909 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Feb 2018
    Posts
    154
    Hi Minty,

    My version: 14.07229.5000, Office Professional Plus 2010.
    My co-worker's version: SAME.

    But, I have used Active X component called "Microsoft Date and Time Picker Control 6.0 (SP6)" as I want the user of my application to choose a date in the main form.

  4. #4
    Minty is offline VIP
    Windows 10 Access 2016
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,144
    The date picker will be your problem.
    Active x controls are troublesome when you move forwards through access and windows versions. If possible don't use them.

    There is a VBA only date picker here : https://www.access-programmers.co.uk...d.php?t=298062 which will remove the issue.
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  5. #5
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,129
    The old date control was deprecated in Access 2010.
    The old windows control library is no longer installed with Windows and cannot be made to work in 64-bit Windows/Access anyway.
    Either use the built in date picker or a non ActiveX replacement such as my better date picker as in the link supplied by Minty or here http://www.mendipdatasystems.co.uk/b...ker/4594398118
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

Please reply to this thread with any new information or opinions.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums