Access uses the macro control Program 4. Common Macro Operations _access
Source: Internet
Author: User
Macros are very rich, and if you just do a small database, the process of the program can be fully implemented with macros, without using Visual Basic. Some operations have no parameters (such as Beep), while others must specify parameters (such as OpenForm). In general, it is a good practice to set the parameters of an operation in the order of the parameters, because selecting a parameter determines the selection of the parameters that follow the parameter. Common macro operation instructions Beep beep through the computer's speakers. Close closes the specified Microsoft Access window. Closes the active window if no window is specified. GoToControl the focus to a specific field or control for the current record in the open form, form datasheet, table datasheet, query datasheet. Maximize enlarge the active window so that it fills the Microsoft Access window. This action allows the user to see as many objects in the active window as possible. Minimize reduces the active window to a small title bar at the bottom of the Microsoft Access window. MsgBox displays a message box that contains a warning message or other information. OpenForm opens a form and restricts the records that the form displays by selecting the form's Data entry and window mode. OpenReport either open the report in Design view or print preview or print the report immediately. You can also limit the records that need to be printed in the report. PrintOut print active objects in the database, or you can print data tables, reports, forms, and modules. Quit quit Microsoft Access. The Quit operation can also specify whether to save database objects before exiting Access. RepaintObject completes the screen update of the specified database object. If a database object is not specified, the active database object is updated. Updates all recalculation of all controls that include the object. Restore restores the maximized or minimized window to its original size. RunMacro run the macro. The macro can be in a macro group. SetValue sets the value of a field, control, or property on a Microsoft Access form, form datasheet, or report. StopMacro Stop the macro that is currently running.
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.