How do you register the calendar control in an Access 2003 .mde file using the runtime module?

Posted on 2006-04-18
Last Modified: 2008-03-17
I guess the question in the title explains exactly what I need answered.  If any additional information is needed please let me know and if someone could give me step by step instructions I would greatly appreciate it.

Thanks   Gary
Question by:garymcgowan
    LVL 74

    Expert Comment

    by:Jeffrey Coachman

    I don't know if this will help, but a lot of users don't use the calendar control for that reason.

    It's an Active-x control.

    Instead, most users utilize the "mini-calendar":

    Works almost exactly the same except it is all done with forms and code. You don't have to worry about registering it, or version incompatablities.

    Good luck
    LVL 84

    Accepted Solution

    I'm assuming this is a distributed application ... in which case you would need to distribute the mscal.ocx file along with your database, and install and register that file on the enduser machine. Typically your installer would to do this, but you could create a batch file that does this it, something like:

    @echo off
    regsvr32 <whatever_your_path_is>\mscal.ocx

    Then have your user run this batch file from the command line (i.e. STart - Run - cmd, then navigate to the directory hosting your batch file and type the name of the batch file, like "C:\Program File\MyDatabase\RegCal.bat" or whatever). Be very careful doing this ... this can break existing applications that also depend on a particular version of the calendar control (i.e. the version incompatibilites boag2000 referred to).

    Distirbuting the calendar control is fraught with troubles and most developers avoid it like the plague, and instead use the advice give by boag2000 and use a 3rd party control ...

    Author Comment

    Thanks to both of you.  I wanted give LSMConsulting 350 pts and boag2000 150 pts but it didn't work out that way.  boag2000 I will make it up to you in another question.  Sorry.

    LVL 74

    Expert Comment

    by:Jeffrey Coachman

    No sweat.

    LSMConsulting has actually "Answered" you question.

    My post was just a suggestion.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
    Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
    As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
    Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now