And, Forms and Reports have associated Modules in which you can place code
that is executed when particular Events occur (such as the OnCurrent event,
which executes for each different record that is displayed, or the Open
event, which executes when the Form is opened). It is most often from this
"event code" that Functions and Sub Procedures in standard Modules are
called, but they can also be called from Macros, using the RunCode step in
the macro.
Another difference is that macros are easier to understand and work
with from a beginners viewpoint. Modules, which contain VBA code are
harder to get going in but are much more flexible and can do a lot
more than macros.
Macros don't have error handling while modules aka VBA code do.
Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at http://www.granite.ab.ca/accsmstr.htm
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.