How to register or unregister an ActiveX control in Access 2007

Source: Internet
Author: User

INTRODUCTION

This article describes how to register or unregister ActiveX controls in Microsoft Office Access 2007.

More information

In earlier versions of Access than Access 2007, you can register or undo ActiveX controls by clicking on the Tools menu. Access 2007, this method is not available in. If you want to register or undo an ActiveX control, use one of the following methods. Method 1: Use the VisualBasic code to register or undo the ActiveX control using the VisualBasic code, run the code directly in the Immediate window, or create the containing code module.

To run VisualBasic code directly in the Immediate window follow these steps:

1. Access 2007, open the Trust database in, or enable macros in the database.
2. Press Ctrl+g to open the Immediate window.
3. Type the following code, and then press Enter. DoCmd.RunCommand Accmdregisteractivexcontrols

To create a code that contains VisualBasic, follow these steps:

1. Access 2007, open the Trust database in, or enable macros in the database.
2. Other groups, create a tab in the, and then click the macro on the module.
3. Create a subroutine that contains the following VisualBasic code. DoCmd.RunCommand Accmdregisteractivexcontrols
4. Press the F 5 key to run the code.

Method 2: Use the RunCommand macro action

1. Access 2007, open the Trust database in, or enable macros in the database.
2. Other groups, create tabs in, and macro by macro.
3. On the Design tab, click Show/Hide groups to show all the actions.
4. Action column in the command list, RunCommand in, and registeractivexcontrols in sequence.
5. Click A0 > Save.
6. In the tool group, click Run.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.