Microsoft Access
  Home arrow Microsoft Access arrow Page 3 - 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 
Moblin 
JMSL Numerical Library 
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: 3 stars3 stars3 stars3 stars3 stars / 18
    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


    Getting to Know Microsoft Access, Part 9: Macros - Debugging


    (Page 3 of 4 )

    Once you've built your macro you need to debug it. You can do this in one of two ways: either you can run it and see what happens, or you can step through the macro one step at a time. Use the step-through method if you get unintended results from running the macro or if an error occurs when you run it.

    To run the macro, just click the Run button on the toolbar. You can also run a macro from the Database window by choosing the Tools | Macro | Run Macro option. Select the macro you want to run when prompted. If an error occurs when you run the macro, read it and then open the Action Failed dialog box. This dialog tells you which action failed and the arguments being used when it failed. Click "Halt" to stop the macro's execution. Modify the macro appropriately by clicking the Design button while the macro you wish to modify is highlighted in the Database window. Use the Insert Rows and Delete Rows buttons to add new actions and delete unwanted actions from your macro.

    Alternatively you can step through the macro, one action at a time, to see how it works. Open the Macro in design view, select the Single-Step toolbar button and then press the Run button. Your options in the step-through dialog box include Step, Halt, and Continue. Step moves you to the next action in the sequence; Halt stops the macro's execution; Continue stops single-step operation and simply runs the rest of the macro. If your macro causes other macros to run, the results of those macros will also be displayed. Here's what the basic step-through dialog box looks like:

    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