MS Access Database Creating Process Details

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Here's a step-by-step guide on creating tables and performing common tasks in MS Access:

1.Creating a Database:

Launch MS Access and click on the "Blank Database" option.

Enter a name for your database and specify the location where you want to save it.

Click "Create" to create the database.

2. Creating a Table:

In the "Tables" tab, click on "Table Design" to create a new table.

Define the fields (columns) for your table by entering the field names and selecting the data types (e.g.,
text, number, date/time).

Set any additional properties for the fields, such as field size, format, and validation rules.

Define a primary key by selecting a field and clicking on the "Primary Key" button in the "Design" tab.

Save the table by clicking on the "Save" button.

3. Entering Data into a Table:

Open the table you want to populate with data.

Click on the "Datasheet View" button in the "Home" tab to switch to the data entry view.

Enter data directly into the table's fields row by row.

4. Creating Relationships between Tables:

In the "Database Tools" tab, click on "Relationships" to open the Relationships window.

Add the relevant tables to the Relationships window.

Drag and drop the related fields between tables to establish relationships.

Define the relationship type (e.g., one-to-one, one-to-many) and enforce referential integrity if necessary.
5. Creating Queries:

In the "Create" tab, click on "Query Design" to create a new query.

Add the tables you want to query and specify the fields you want to retrieve.

Define criteria and expressions to filter and manipulate data.

Save the query and run it to see the results.

6. Creating Forms:

In the "Create" tab, click on "Form Design" to create a new form.

Add the desired fields and arrange them on the form.

Customize the form's appearance, layout, and formatting using the tools in the "Design" tab.

Save the form and switch to Form view to enter and view data.

7. Creating Reports:

In the "Create" tab, click on "Report Design" to create a new report.

Select the tables or queries as the data source for the report.

Add the desired fields and arrange them on the report.

Customize the report's appearance, grouping, sorting, and calculations using the tools in the "Design" tab.

Save the report and preview or print it.

8. Creating Indexes:

Indexes improve the performance of queries by optimizing data retrieval.

Open the table in Design view.

Select the field(s) you want to create an index for.

In the "Design" tab, click on the "Indexes" button.

Define the index properties, such as index name, index type, and uniqueness.

9. Adding Validation Rules:


Validation rules help ensure the accuracy and integrity of data entered into the database.

Open the table in Design view.

Select the field you want to apply a validation rule to.

In the "Field Properties" section, enter the validation rule in the "Validation Rule" property.

Optionally, enter a custom error message in the "Validation Text" property.

10. Creating Relationships using the Relationship Builder:

Open the Relationships window by clicking on "Database Tools" and then "Relationships."

Click on the "Show Table" button to add the relevant tables.

Drag and drop the related fields between tables to establish relationships.

Use the Relationship Builder to define relationship options, such as referential integrity and cascading
updates/deletes.

11. Using Query Wizard:

The Query Wizard helps you create queries quickly and easily.

In the "Create" tab, click on "Query Wizard."

Follow the wizard's steps to specify the tables, fields, sorting, and filtering criteria.

Choose the desired query type, such as a select query, crosstab query, or parameter query.

12. Importing and Exporting Data:

MS Access allows you to import data from various sources, such as Excel, CSV files, or other databases.

In the "External Data" tab, choose the appropriate import option and follow the prompts to import data
into your database.

You can also export data from your tables, queries, or reports to other file formats using the "External
Data" tab.
13. Creating Macros:

Macros automate tasks in MS Access by combining a series of actions.

In the "Create" tab, click on "Macro" to create a new macro.

Add actions to the macro, such as opening a form, running a query, or performing data calculations.

Save the macro and assign it to a button, event, or menu option to trigger its execution.

14. Using Expression Builder:

The Expression Builder helps you create complex calculations, expressions, and criteria.

It provides a graphical interface to select functions, operators, fields, and constants.

You can access the Expression Builder from various places in MS Access, such as query criteria, form
controls, and report calculations.

You might also like