Access uses the macro control program to create macros

Source: Internet
Author: User

Because macros are executed when the control occurs, we need to create the object and then let its corresponding event point to a macro.

Create a form to add a button above (If the Button Wizard dialog box appears, click Cancel).

Select the event in the Properties window/Click the Builder button to the right, select Macro Builder, and then give the macro a name, such as Macro 1.

Select "OpenForm" in the Action column and "Form 1" in the following argument (of course, you need to have a form called Form 1 before this).

Close the Design view of the macro and save the macro.

This is the Properties window for the newly built button, and you can see that the click of the event already points to Macro 1.

Runs the form, and when you click the button, the form 1 opens.

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.