asdaqamin
12-02-2005, 01:05 PM
What is Macro? and How to use/make it. When we need this, please give any example for understanding me.
what procedure.
what procedure.
|
View Full Version : What is Macro? and How to use/make it. asdaqamin 12-02-2005, 01:05 PM What is Macro? and How to use/make it. When we need this, please give any example for understanding me. what procedure. seth_belgium 12-02-2005, 03:28 PM A macro is a simplified, visualized version of VBA-coding. With a macro you can sequence a number of actions Access has to perform when the macro is run. Examples of macro-usage: -> Opening a form and going to the last record. -> Running several queries, print a report, run some more queries, open a form and display a message to a user. The possibilities of a macro are pretty restricted when you compare it to VBA (Visual Basic for Applications) code. So basically; if you want to perform a sequence of simple actions like described above, you definately should start experimenting with macros. As you get better at it, you'll want to do more that macro's can offer, and you'll have to start learning some VBA-code. Finally: A macro can be opened in the database window by double-clicking it or from a form with a commandbutton. Just follow the steps in the wizard for creating such buttons on a form. You can select "Open a macro" or "Run macro", I don't know the exact phrasing anymore. For all the actions macro's can perform and how to use them; Press F1... ;) Good luck! Seth statsman 12-05-2005, 04:05 PM An excellent example of a macro would be "Autoexec". Just like the old days in MS-DOS, Access will automatically run the Autoexec macro every time you open the database. Good contents for Autoexec: "Maximize" - expands Access to full screen so that you're not working in a little corner. "Open Form" Opens a form on the screen at startup, such as your Main Switchboard. Janjang 12-05-2005, 04:56 PM nice thread... im new wit macro...is macro simply like C++ or sumting like basic programming? how to make data declaration? |