Microsoft Access
  Home arrow Microsoft Access arrow Getting to Know Microsoft Access, Part 9: ...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Actuate Whitepapers 
VeriSign Whitepapers 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
MICROSOFT ACCESS

Getting to Know Microsoft Access, Part 9: Macros
By: Sage Adams
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 17
    2005-03-22

    Table of Contents:
  • Getting to Know Microsoft Access, Part 9: Macros
  • Macros
  • Debugging
  • Getting Fancy with Macros

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    Getting to Know Microsoft Access, Part 9: Macros


    (Page 1 of 4 )

    This week we'll discuss, for those of you unfamiliar with programming, one of the more conceptually complex aspects of Microsoft Access. We'll start with a discussion of events: what they are and how Access uses them. Then, we'll move on to a lengthy discussion of macros, including what they do and how you design and use them.

    The Event Model

    In Access, an event is something that happens to an object, which in turn triggers a response of some sort. Usually events are caused by the user but can also be triggered by the program. For example, when Access loads you could make a form open automatically. This can happen because a form opening is an event.

    Events are organized into eight different groups, each corresponding to a different type of effect. For example, some events work on data, others on keyboard actions, and so forth. Each event corresponds to a property of an object. For example, several controls have the "On Change" event property set. The eight different types of groups are: data events, focus events, error/timer events, keyboard events, filter events, mouse events, print events, and window events.

    You can set event properties by opening the property sheet for an object and clicking into the Event tab. There you can specify what events you want to apply to the object. The following list shows the options available to you:

    1. You can set the event property to a macro group.
    2. You can set the event property to an existing macro.
    3. You can set the event property to an existing VBA procedure.
    4. You can set the event property to an existing user-defined function [enter an = sign followed by the function name and then empty parentheses () to so ]
    5. Click Build… to create a new macro, VBA procedure (using the Code Builder), or function (using the Expression Builder).

    More Microsoft Access Articles
    More By Sage Adams


       · Hi,overall content of article is good,but where r the examples? In detail...
     

    MICROSOFT ACCESS ARTICLES

    - Linking SQL Express 2005 Tables to MS Access...
    - Working with Access Projects in Access 2007
    - Exploring Access 2007
    - Working with Stored Procedures in an MS Acce...
    - Creating and Using Action Queries
    - Creating Data Access Pages with Charts using...
    - Advanced Ideas using VBA
    - VBA Details
    - Updating Records in MS Access
    - Using ADO`s Record Object with URLs
    - Exporting XML from MS Access 2003
    - Importing XML into MS Access 2003
    - On Using Pass-through Queries in MS Access
    - Distributed Queries in MS Access
    - Configuring a Linked Microsoft Access Server...





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway