error : can't find project or library

Anonymous
2017-05-20T11:19:29+00:00

i have a problem using access i receive this message when i compile " cant find project or library " and on click on a form before opening it shows the message  "your microsoft access database or project  contains missing or broken reference to the file MSCOL.OCX version 7.0 "

i think all the problem is with refrences but im new with access so i don't get it . here are the references checked . could anyone tell me where is the problem ?

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

7 answers

Sort by: Most helpful
  1. ScottGem 68,780 Reputation points Volunteer Moderator
    2017-05-20T12:54:12+00:00

    Is this an older app being run in 2016? The message is clear. You are using the older Calendar control that is not longer included. Just uncheck  the Missing reference and the message will go away.

    You will need to open any forms in design mode that use that calendar control and remove it.

    0 comments No comments
  2. Anonymous
    2017-05-20T12:57:07+00:00

    It is a Reference issue indeed.  You can see the line

    MISSING: Microsoft Calendar Control 2007

    You either have to find a copy of the missing file and register it on the computer, or better yet, ditch the ActiveX component altogether.  For a calendar control, there truly never has been a reason to use ActiveX controls, and as you can see, they simply get you into trouble.

    As of 2007, you can use the very limited free date picker, or better, use one of these calendar (which are 100% Access form based, so no versioning issues.

    https://www.devhut.net/2010/06/10/ms-access-calendar-date-picker-control/

    0 comments No comments
  3. Anonymous
    2017-05-20T18:01:16+00:00

    the database was created on another pc but the same version of microsoft 

    should i remove this criteria >=Now() And <=Now()+7 i used it in a query and i called it in the code

    0 comments No comments
  4. ScottGem 68,780 Reputation points Volunteer Moderator
    2017-05-20T19:58:57+00:00

    I have to doubt that it was created in Access 2016, since that OCX is no longer included.

    No, don't remove the criteria, remove the reference.

    0 comments No comments
  5. Anonymous
    2017-05-20T21:53:27+00:00

    could you tell me which one plz ?

    0 comments No comments