What is Macro? and How to use/make it.

asdaqamin

Asdaq Amin
Local time
Today, 23:41
Joined
Nov 29, 2005
Messages
33
What is Macro? and How to use/make it. When we need this, please give any example for understanding me.
what procedure.
 
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
 
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.
 
nice thread... im new wit macro...is macro simply like C++ or sumting like basic programming?
how to make data declaration?
 

Users who are viewing this thread

Back
Top Bottom