Discover millions of ebooks, audiobooks, and so much more with a free trial

Only $11.99/month after trial. Cancel anytime.

Automating Access Databases with Macros
Automating Access Databases with Macros
Automating Access Databases with Macros
Ebook130 pages1 hour

Automating Access Databases with Macros

Rating: 5 out of 5 stars

5/5

()

Read preview

About this ebook

Upgrade Your Microsoft Access Skills with Macros!

A lot has changed with macros in Microsoft Office Access.

While there are many books available on how to use Microsoft Office Access 2010 and 2013, most just have a couple of pages on how to create one macro.

This is why I created this step-by-step illustrated guide.

I teach adult software courses, and you just can’t go by the book.
Many students would get frustrated by the lack of macro exercises and examples – and so would I.

So I started creating my own to supplement the materials in the class.
I gathered some of the most popular examples to share with you.

We all know that using Microsoft Office Access can take some time.
Why not make it easier on yourself, make it easier on your co-workers?
Learn how to create macros today.

Learn how to attach macros to forms and reports.
Also learn the latest feature – Data Macros.

The examples in this guide can be used to create macros in Microsoft Office Access 2010 as well as 2013.

So learn how to do more with less time.
Take a look inside, then click the Buy button to get started today.

LanguageEnglish
PublisherIFS Harrison
Release dateJun 2, 2013
ISBN9781301749065
Automating Access Databases with Macros

Read more from Fish Davis

Related to Automating Access Databases with Macros

Related ebooks

Applications & Software For You

View More

Related articles

Reviews for Automating Access Databases with Macros

Rating: 5 out of 5 stars
5/5

1 rating0 reviews

What did you think?

Tap to rate

Review must be at least 10 words

    Book preview

    Automating Access Databases with Macros - Fish Davis

    Introduction

    Lesson 1: Getting Familiar with Microsoft Office Access Macros

    The Macro Builder Window

    Commonly Used Macro Actions and Their Uses

    Showing All Actions

    Arguments – the good kind

    The Action Catalog

    Error Handling

    Submacros

    Comments

    Rearranging Actions

    Copying Actions

    Sharing Your Macros with Others

    Converting a Macro to VBA

    Lesson 2: Data Event Macros Attached to Tables

    Using Before Change to Populate Field Values

    Using Before Delete to Raise Errors

    Using After Insert to Send E-mails

    Using After Update to Automatically Create Records in Other Tables

    Using After Delete to Log Events

    Lesson 3: Macros Attached to Forms

    E-mailing the Contact on a Form

    E-mailing a Form

    Importing Contacts from Microsoft Office Outlook

    Creating an Outlook Contact from Form Information

    Opening a Report

    Opening a Report with a Filter Condition

    Automating Data Entry

    Requiring Data Entry

    Filtering Form Records

    Lesson 4: Macros Attached to Reports

    E-mailing a Report

    Saving a Report as a PDF

    Canceling the Printing of Blank Reports

    Lesson 5: Creating an AutoExec Macro

    List of Macro Actions

    Introduction

    While working with your databases, you might have tasks or actions that you perform over and over.

    Instead of performing the 5 or 15 steps it takes to complete the task, you can create a macro that does them for you.

    In Microsoft Office Access, macros can be created to:

    - open a form

    - run a query

    - print reports

    - find and filter records

    - validate data

    - populate other tables

    - e-mail and more.

    Yes, it does take some time to create your macros, but not long.

    Think about how much time you will be saving in the future.

    We will focus on creating event macros for tables as well as macros used in forms and reports.

    As you go through this guide, think about how you can apply what you have learned to your work, and your databases.

    Lesson 1:

    Getting Familiar with Microsoft Office Access Macros

    The Macro Builder Window

    If you have ever created a macro in Microsoft Office Word or Microsoft Office Excel, you know that you can press the Record Macro button, give the macro a name, perform a few steps, stop recording and voilà – you’re done!

    Well guess what?!?!

    That is not how macros are built in Microsoft Office Access.

    In this application, you don’t record macros, you BUILD them.

    Building macros or any subsequent changes made to them are done in the Macro Builder window.

    To access the Macro Builder window, click the Create tab in the Ribbon. In the Macros and Code group, click the Macro button.

    NOTE: The Macro Builder window has been updated in the 2010 version of Microsoft Office Access.

    If you are using an earlier version of the application, the theory is still the same; however the steps outlined in this guide are different.

    Old macro builder above.

    In the Macro Builder window, you specify the action(s) that you want the macro to take, any conditions on that action and you can optionally add

    Enjoying the preview?
    Page 1 of 1