How To Create Microsoft Access Database
To create a Microsoft Access database, open Access, choose Blank database, give the file a name and location, then select Create. Build tables with suitable fields and primary keys, connect related tables, and enter sample records. Add queries to find information, forms for data entry.
Which licences fit your PC setup?
Prices are an AUD snapshot, not a live quote. Confirm variant and total on the listing.
-

Office 2021 Pro Plus key
$57.00 AUD
-

Office 2019 Pro Plus key
$45.00 AUD
-

Microsoft 365 Pro Plus, 5 devices
$15.00 AUD
$29.00
Prepare Access and decide what to track
Start with Access installed and opening successfully. For separate Office setup questions, the Microsoft Office blog includes guides to Office activation using CMD and Office product-key checks using Command Prompt.
Write down what your database needs to store and which questions it should answer. A customer-order tracker, for example, might need to show who placed each order, when it was placed, and its value. Use that purpose to decide which fields belong in each table.
Plan separate tables for separate subjects
A table stores records about one subject. Each row is a record; each column is a field. In a simple tracker, keep customer details separate from orders so you can add another order without re-entering the customer's contact information.
- Customers: CustomerID, CustomerName, Email and Phone.
- Orders: OrderID, CustomerID, OrderDate and OrderTotal.
CustomerID uniquely identifies each customer in Customers. The matching CustomerID in Orders identifies who placed that order. One customer can therefore have several orders. Microsoft’s database design guidance explains how separating subjects and defining relationships reduces duplicated information.
This example records order totals only. If you need individual products and quantities for each order, plan separate Products and OrderDetails tables rather than adding fields such as Product1 and Product2.
Create the database file
- Open Access and select File, then New.
- Select Blank database, sometimes labelled Blank desktop database.
- Enter a descriptive file name, such as CustomerOrders.accdb.
- Use the folder button to choose where to save the file.
- Select Create.
Access opens the database with an initial table named Table1. You can use this table or create your own through Table Design. A template is another starting point if its structure suits your work; Microsoft's new database guide covers both approaches.
Define fields and primary keys
Design View lets you choose field types deliberately instead of relying on Access to infer them from typed values.
- Select Create, then Table Design.
- Enter CustomerID in the Field Name column and choose AutoNumber as its data type.
- Select the CustomerID row and choose Primary Key on the table design ribbon.
- Add CustomerName, Email and Phone, choosing Short Text for each.
- Save the table as Customers.
- Create another table named Orders, using OrderID as its AutoNumber primary key.
- Add CustomerID as Number, with Field Size set to Long Integer. Add OrderDate as Date/Time and OrderTotal as Currency, then save.
Use Short Text for phone numbers and postcodes: they are identifiers rather than quantities, and may contain leading zeroes or symbols. Use Number for quantities used in calculations, Currency for monetary values, and Date/Time for dates.
A primary key must identify each record uniquely. AutoNumber supplies that identifier automatically; leave it for Access to generate when entering records. Microsoft's table and field instructions explain the available creation methods and primary-key settings.
Review field properties before entering real data. Set Required to Yes where a missing value would make a record unusable. Add validation rules only where they reflect an actual requirement, such as preventing a negative order total.
Connect Customers and Orders
The CustomerID field in Orders is a foreign key: it points to the corresponding customer record. Its Long Integer setting matches the standard AutoNumber key in Customers.
- Close the open tables, then select Database Tools and Relationships.
- Choose Add Tables and add Customers and Orders.
- Drag CustomerID from Customers onto CustomerID in Orders.
- Check the field names in the Edit Relationships dialogue box.
- Select Enforce Referential Integrity, then select Create and save the relationship layout.
Referential integrity prevents an order from referencing a customer ID that does not exist. If Access refuses to enable it, check the field types and any existing records. Leave Cascade Delete Related Records unticked unless deleting a customer should also delete their orders. Microsoft's relationship instructions explain these settings.
Enter sample records before importing data
- Open Customers in Datasheet View and enter a sample customer, leaving CustomerID to Access.
- Note the generated CustomerID.
- Open Orders and enter an order with that CustomerID, an order date and a total.
- Add another order for the same customer to check that the relationship supports multiple orders.
If your information already exists in Excel or a CSV file, use the import tools on the External Data tab. Check headings, dates, field types and duplicate records before importing your full dataset. Importing copies data into Access; linking keeps a connection to the external source.
Create a query to answer a specific question
A select query displays chosen fields and matching records from your tables. For example, combine customer names with order dates and totals.
- Select Create, then Query Design.
- Add Customers and Orders. Check that their CustomerID fields are joined.
- Add CustomerName, OrderDate and OrderTotal to the design grid.
- Choose Descending in the Sort row under OrderDate to show recent orders first.
- To show only orders above a chosen value, enter >100 in the Criteria row under OrderTotal. This is an example threshold; replace it with your own.
- Select Run, inspect the results, and save the query as CustomerOrderList.
Saving a select query saves its definition, so reopening it displays results from the current underlying data. See Microsoft's select query guide for more filtering options.
Add forms and reports
Create a form for entering customer details
- Select Create, then Blank Form.
- In the Field List, expand Customers and drag the fields onto the form.
- Arrange the labels and controls in Layout View.
- Save as CustomerEntry, switch to Form View, and enter a test record.
Check that the new record appears in Customers. Microsoft's Blank Form instructions describe adding fields and controls.
Create a report from your query
- Select CustomerOrderList in the Navigation Pane.
- Select Create, then Report.
- Adjust column widths and labels in Layout View, then save as CustomerOrdersReport.
- Open Print Preview and check for clipped fields or unwanted page breaks.
Use Report Wizard instead if you want to choose grouping and sorting during creation. Microsoft's report guide covers both methods.
Back up and maintain the database
Keep regular backups and make an additional copy before changing table structures or importing substantial data. For a simple file backup, have everyone close the database before copying it to a separate backup location. Periodically check that a backup copy opens.
Compact and Repair can reclaim unused space and address some file problems. Back up first and ensure no one else has the database open; Microsoft's maintenance guidance explains the requirements. Protect the database folder with appropriate file permissions.
Next, create the Customers table and enter one sample customer. Use that record to check your fields before building Orders.
Other editions for separate workloads
Other editions for separate workloads; prices in AUD, confirm the total on the listing.
-

Windows 11 Pro key
$14.99 AUD
$29.00 -

Office 2024 Pro Plus key
$20.00 AUD
$39.00 -

Windows 11 Home key
$18.88 AUD
$37.00
How to check this worked
- Open Settings, System, Activation and confirm the edition shown.
- Enter the key and run activation; expect a green tick within a minute.
- Reboot and re-check activation survives the restart.
FAQ
What else should you know before buying?
- What do I need before starting?
- Read the requirements and confirm the edition first; the steps assume the machine is compatible.
- How do I know the licence is genuine?
- Activate on Microsoft's servers and check Settings, System, Activation. A working activation is the test.
- Is this a subscription?
- Keys sold here are one-time lifetime licences. Microsoft 365 plans are billed by Microsoft instead.
- What if the key fails?
- Email hi@ms.codes with the order number and a screenshot. Replacement or refund applies within 30 days.
Check who prepared and reviewed this guide
- Written by
- MS.Codes editorial
- Reviewed by
- Support team
Last verified: (source review; see test status above).