Microsoft Access
  Home arrow Microsoft Access arrow Page 2 - Jump Start VBA Skills with MS Access Macro...
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 
Mobile Linux 
App Generation ROI 
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

Jump Start VBA Skills with MS Access Macros
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 29
    2005-11-08

    Table of Contents:
  • Jump Start VBA Skills with MS Access Macros
  • Creating and running a macro in MS Access: opening the macro designer
  • Creating the first macro
  • Converting this macro to VBA code
  • Creating the second macro

  • 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


    Jump Start VBA Skills with MS Access Macros - Creating and running a macro in MS Access: opening the macro designer


    (Page 2 of 5 )

    Create an access database file Macro.mdb (this is my name for it) as shown. The left side shows all the Access objects that includes macros.

    Click on Macros, and you will see that you are allowed only to create a New Macro, as this is a new file with no other objects. Now click on the tab with the icon New. This opens up the next window, the Macro Designer, where you can fashion the macro. It comes up with a default name, Macro1.

    Later on, before you leave the macro designer, you will get a chance to save the macro with a name of your choice. Presently it has two columns, Action and Comment. Action is where you state what needs to happen when the macro runs. The comment is for your reference, and lets you explain it in a more descriptive form. Below the column you have the action arguments. Since there are no actions, there are no arguments. The two columns are there by default; you may add additional columns by going to tools->option->view as shown. Here  you can choose to show the Names column and the Conditions column.

    This picture shows the macro designer with all four columns (you may have to close and open the macro designer to make the changes visible). In the Macro Name column you give the macro a name, and the condition is some condition that you may want to impose on the action. We will not use this column for this introductory tutorial.

    More Microsoft Access Articles
    More By Jayaram Krishnaswamy


       · It's my pleasure to welcome you to read and comment on this article. VBA is a...
       · Is it possible to add a pop up window in Access.fro instance if one has a stock...
       · Does not mean I have a code ready. With DAP you should be able to do this and much...
       · Hello!Not sure where to look for the "steps for query and report creation",...
       · By the quoted text in your question, what I mean is, that I am assuming that I am...
     

    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 3 hosted by Hostway
    Stay green...Green IT