Macros in MS Access: Hindi Tutorial

Victoria Jul 07, 2026

macros in ms access in hindi: Are you looking to automate repetitive tasks in your Microsoft Access database? Macros can be your best friend! They allow you to perform complex tasks with just a click of a button. Let's dive into the world of macros in MS Access, and explore how you can leverage them to boost your productivity.

MS Access Sample Downloads
MS Access Sample Downloads

Before we get started, it's important to note that macros in MS Access use Visual Basic for Applications (VBA) as their programming language. Don't worry if you're not familiar with VBA, as we'll guide you through the basics and help you understand how to create and use macros.

How to Use Macros in Microsoft Access 2013 - Examples of Macros and Using Autoexec
How to Use Macros in Microsoft Access 2013 - Examples of Macros and Using Autoexec

Understanding Macros in MS Access

In simple terms, a macro in MS Access is a series of instructions that you can run with a single command. These instructions can include actions like opening a form, running a query, or even performing complex calculations. Macros are stored in the Macro Builder and can be assigned to buttons or shortcuts for easy access.

MS Access Tutorial
MS Access Tutorial

Macros are an excellent way to automate tasks that you perform frequently. They can save you time and reduce the risk of errors that may occur due to manual data entry. Now that we have a basic understanding of macros let's explore how to create and use them in MS Access.

Creating a Simple Macro

Data Types in Microsoft Access with Examples VBA Access
Data Types in Microsoft Access with Examples VBA Access

To create a simple macro in MS Access, follow these steps:

  1. Open the Macro Builder by clicking on the 'Create' tab in the ribbon and selecting 'Macro' in the 'Forms' group.
  2. In the 'Macro Builder' dialog box, enter a name for your macro in the 'Macro Name' field. For this example, let's name it 'MyFirstMacro'.
  3. Click on the 'Build' button to open the 'Macro Builder' where you can add actions to your macro.
  4. In the 'Macro Builder', click on the 'Add' button to insert a new action. In the 'Action' field, select 'OpenForm' to open a form using your macro.
  5. In the 'Form Name' field, enter the name of the form you want to open. For example, 'frmCustomers'.
  6. Click 'OK' to save your macro and close the 'Macro Builder'.

Now that you've created your first macro, let's assign it to a button so you can use it easily.

How to Automate Tasks in MS Access with Macros
How to Automate Tasks in MS Access with Macros

Assigning a Macro to a Button

To assign your macro to a button, follow these steps:

  1. Open the form where you want to add the button. In our example, let's use 'frmCustomers'.
  2. Click on the 'Design' tab in the ribbon to open the form in Design View.
  3. In the 'Controls' group, click on the 'Button' control and drag it onto the form where you want to place the button.
  4. With the button still selected, click on the 'Property Sheet' button in the 'Tools' group on the 'Design' tab.
  5. In the 'Property Sheet' pane, click on the 'Event' tab. In the 'On Click' field, enter the name of your macro, 'MyFirstMacro'.
  6. Click 'Close' to close the 'Property Sheet' and save your changes.
Tutorial - Creating a Contact Management Database (CRM) using Microsoft Access
Tutorial - Creating a Contact Management Database (CRM) using Microsoft Access

Now, whenever you click the button on the 'frmCustomers' form, the 'MyFirstMacro' macro will run, and the form will open.

Advanced Macros in MS Access

Macro To Open Query in MS Access 2007
Macro To Open Query in MS Access 2007
64 workspace ms access
64 workspace ms access
MS Access Validation Rule Lookup Table Examples
MS Access Validation Rule Lookup Table Examples
Query Multiple tables in MS Access
Query Multiple tables in MS Access
Ms access important shortcuts
Ms access important shortcuts
Microsoft Access Asset Tracking Management Database Templates for Microsoft Access 2016 Software - Verified: June 2026 ✅
Microsoft Access Asset Tracking Management Database Templates for Microsoft Access 2016 Software - Verified: June 2026 ✅
MS Access - Create Form
MS Access - Create Form
MS Access - A Cost Effective, Powerful Business Tool
MS Access - A Cost Effective, Powerful Business Tool
No More Negative Numbers! Fix MS Access Database Validation Rule
No More Negative Numbers! Fix MS Access Database Validation Rule
Where To Store Your VBA Macro In? This Workbook or Personal Macro Workbook? Learn Now!
Where To Store Your VBA Macro In? This Workbook or Personal Macro Workbook? Learn Now!
MS Access Do-While Statement - Microsoft Access Programs
MS Access Do-While Statement - Microsoft Access Programs
Ms Access Input Mask in Query Form or Report
Ms Access Input Mask in Query Form or Report
5 macros I use to automate my Excel workbook
5 macros I use to automate my Excel workbook
Concatenation in Access. How to join fields together in Microsoft Access reports and queries.
Concatenation in Access. How to join fields together in Microsoft Access reports and queries.
Health, Macros Cheat Sheet Food, Diet
Health, Macros Cheat Sheet Food, Diet
Audit Trail using Data Macros
Audit Trail using Data Macros
How to Calculate Your Macros for Weight Loss (Beginner Friendly)
How to Calculate Your Macros for Weight Loss (Beginner Friendly)
3 Crosstab Query Techniques in MS Access
3 Crosstab Query Techniques in MS Access
MS Access
MS Access
search as you type
search as you type

While creating simple macros like the one above is a great starting point, MS Access also allows you to create more complex macros that can perform a wide range of tasks. Some advanced macro actions include:

  • Running queries to update or retrieve data
  • Performing calculations and manipulating data
  • Controlling the appearance and behavior of forms and reports
  • Running other macros or calling VBA functions

To create advanced macros, you'll need to become familiar with the Macro Builder and the various actions it offers. You can also use the 'Help' feature in MS Access to learn more about each action and its syntax.

Macro Security in MS Access

While macros can greatly enhance your productivity, it's essential to be aware of the potential security risks they pose. Macros can contain VBA code, which can be used to execute malicious actions if not properly secured. To protect your database from malicious macros, MS Access provides several security features:

  • Macro Security Settings: You can configure the macro security settings in MS Access to control which macros are allowed to run and under what conditions.
  • Digital Signatures: You can digitally sign your macros to verify their authenticity and integrity.
  • Encryption: You can encrypt your macros to prevent unauthorized access or modification.

It's crucial to understand these security features and implement them appropriately to protect your database and your data.

In conclusion, macros in MS Access are a powerful tool that can help you automate repetitive tasks and boost your productivity. By learning how to create and use macros, you can streamline your workflow and focus on more critical aspects of your database management. So, start exploring the world of macros today and unlock the full potential of MS Access!