Microsoft Access
  Home arrow Microsoft Access arrow Page 3 - 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 the first macro


    (Page 3 of 5 )

    Let's create a very simple macro. This is my favorite macro. It's more universal than 'Hello, world." You need to understand English to appreciate "Hello world." This macro, when it runs, simply 'beeps.' To create this macro go to the designer and click on the Action column's first row, where you find a drop-down arrow. From the list, click on Beep, and the designer should appear as shown. Read the explanation in blue at the bottom in the Action Arguments section.

    Now you have created your first macro. Click on the designer's close button at the top right most point. The message asks you whether you want to save changes to the macro you created. Click on Yes.

    This will bring up this little message asking you to change the name for the macro .

    I just called it 'MyBeep.' This will close the message box and shows the main window with the newly created "MyBeep" displayed as shown.

    Now you may "run" the macro by going to the main window's left most point and clicking on "!" or from the pop-up drop-down. This should produce a beep from your computer.

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