How to use macros in data in Microsoft Access. Learn how to work with data macros in Access to ensure accuracy and validity in the table. These macros automate your database and make it dynamic.
Don't forget to check out our site http://howtech.tv/ for more free how-to videos!
http://youtube.com/ithowtovids - our feed
http://www.facebook.com/howtechtv - join us on facebook
https://plus.google.com/103440382717658277879 - our group in Google+
Microsoft Access is database application software that lets you create database of various sorts with ease. The best part about Microsoft access database is that it helps one to quickly track and report information. It provides the user with rich user interface and interactive design capabilities. It can also be used for web applications. Data macros in Access enable you to add logic to events that occur in tables such as adding, updating, or deleting data.
Step # 1 -- Using after update
In order to create a data macro, first open up the orders table. Over there, go up to the "tables" tab and then click on the "After update" button; a macro window will open as a result.
Step # 2 -- Adding task
In the first box, write down "if" and then start typing "order status" in a square bracket.
You will get a drop down with the possible matches present in the database. Double click on order status and it puts it in the bracket. Insert the "equals to" sign and after that, in quotation marks type "complete".
Step # 3 -- Fill in the information
In the next box, select send email and a box of email options will open. In the "to" field, type "customers" in square brackets then add an exclamation mark and type "email address" in another square bracket to complete the expression. Now complete the form by typing in data in the subject and body field.
Step # 4 -- Triggering macro
Now go to your orders table and type in details for a new order. Select a customer from the drop down, choose a product and lastly type in the quantity. Leave the order status field on processed and move over to the next field.
Now go back to the "order status" field and change it to "complete" and an email would be sent to the customer automatically.
You can use data macros in Access to validate and ensure the accuracy of data in a table. There are two main types of data macros—those that are triggered by table events (also called "event-driven" data macros), and those that run in response to being called by name (also known as "named" data macros). One more thing about Microsoft access database it that it can be managed in an effective manner using macros.
Tags: How to use macros in data in Microsoft Access, macros, data, run, macro, modify, data macros, macros access, run macro, modify macro, data macros access, Adding task, Triggering macro, after update access, access, vba, microsoft access, access 2007 tutorial, microsoft access tutorial, access 2007, access 2010, access 2010 tutorial, access tutorial, ms access, access database tutorial, basic access, access tutorials, access query, guide, education, manual, tutorial, lesson, video, instruction, tutorials, howto, how to, howtech