Create a form in Access
Forms are the user interface of a database: colleagues enter customers, see orders and stop calculating by hand. What a form shows is set by two properties: the Record Source and the Control Source of each control.
In short: the Record Source (table or query) decides which records the form shows. Every text box has a Control Source: a field name makes it bound and editable, an expression starting with = makes it calculated. Both are set in the Property Sheet (F4) on the Data tab.
Before you start: queries and expressions from levels 2 to 4, most recently the level 4 project.
Try it now
The exercise shows the Property Sheet with the form’s controls. Run opens the form preview; use the arrows to move through the records.
Task Build a form for products: the Record Source is the Products table. The text box “Product” shows ProductName, “Price” the UnitPrice and “Stock value” calculates UnitPrice times UnitsInStock.
Products 18 rows, 6 columns
| ProductID | ProductName | CategoryID | UnitPrice | UnitsInStock | Discontinued |
|---|---|---|---|---|---|
| 1 | Blue ballpoint pen | 1 | 1.20 | 121 | ☐ |
| 2 | Highlighter 4-pack | 1 | 3.90 | 76 | ☐ |
| 3 | Hole punch | 1 | 8.50 | 237 | ☐ |
| 4 | Stapler | 1 | 12.90 | 61 | ☐ |
| 5 | Lever arch file | 1 | 2.80 | 76 | ☑ |
| 6 | USB drive 64 GB | 2 | 9.90 | 193 | ☐ |
| 7 | Wireless mouse | 2 | 19.90 | 157 | ☐ |
| 8 | Keyboard | 2 | 34.90 | 216 | ☐ |
| 9 | 27-inch monitor | 2 | 229.00 | 129 | ☐ |
| 10 | Headset | 2 | 49.00 | 47 | ☐ |
| 11 | Office chair | 3 | 189.00 | 135 | ☐ |
| 12 | Desk | 3 | 349.00 | 46 | ☐ |
| 13 | Mobile pedestal | 3 | 129.00 | 105 | ☐ |
| 14 | Copy paper A4 | 4 | 4.50 | 35 | ☐ |
| 15 | Notepad | 4 | 1.90 | 122 | ☐ |
| 16 | Envelopes 100-pack | 4 | 6.90 | 93 | ☐ |
| 17 | Labels | 4 | 7.50 | 75 | ☐ |
| 18 | Laminating pouches | 4 | 11.90 | 211 | ☐ |
Bound or calculated
| Control Source | Kind | shows |
|---|---|---|
UnitPrice | bound | the field value in the field’s format, editable |
=[UnitPrice]*[UnitsInStock] | calculated | the result without a format (145.2), read-only |
=[FirstName] & " " & [LastName] | calculated | joined text |
| empty | unbound | nothing until someone types |
For a format such as Currency, set the Format property on the Format tab.
What the error displays mean
| Display | Cause |
|---|---|
| #Name? | a field name is misspelled or missing from the Record Source |
| #Div/0! | division by zero |
| #Type! | text where a number or date is expected |
| #Func! | an invalid argument, such as the square root of a negative number |
Task Build a customer card on the Customers table: “Name” shows first and last name with a space between, “Customer since” the field CustomerSince, “Status” the text Regular or New depending on the Regular field.
Customers 25 rows, 10 columns
| CustomerID | Company | FirstName | LastName | City | PostalCode | Country | CustomerSince | Regular | Discount |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Noah | Evans | Leeds | LS1 1UR | UK | 28 Feb 2023 | ☑ | 0.1 | |
| 2 | Shaw & Partners | Noah | Davies | Glasgow | G1 1XQ | UK | 5 Feb 2024 | ☐ | 0.03 |
| 3 | Northlight Inc | Sophia | Hall | Denver | 80202 | USA | 30 Jun 2024 | ☑ | 0 |
| 4 | Olivia | Evans | Bristol | BS1 4DJ | UK | 29 Jun 2022 | ☑ | 0 | |
| 5 | Olivia | Smith | London | EC1A 1BB | UK | 23 Sep 2025 | ☑ | 0 | |
| 6 | Northlight Inc | Mia | Evans | Manchester | M1 1AE | UK | 1 Feb 2025 | ☐ | 0.1 |
| 7 | Bauer Ltd | Ava | Wilson | UK | 14 Oct 2024 | ☐ | 0.05 | ||
| 8 | Lucas | Taylor | Glasgow | G1 1XQ | UK | 2 Jul 2023 | ☐ | 0 | |
| 9 | Jack | Clark | Seattle | 98101 | USA | 7 Nov 2022 | ☐ | 0.1 | |
| 10 | Northlight Inc | Henry | Taylor | Denver | 80202 | USA | 3 Nov 2022 | ☑ | 0.1 |
| 11 | Northlight Inc | Oliver | Johnson | Bristol | BS1 4DJ | UK | 6 Mar 2024 | ☐ | 0 |
| 12 | Henry | Taylor | Chicago | 60601 | USA | 24 Dec 2023 | ☐ | 0 | |
| 13 | Northlight Inc | Noah | Taylor | London | EC1A 1BB | UK | 12 Oct 2022 | ☐ | 0 |
| 14 | Summit Consulting | Mia | Smith | Austin | 78701 | USA | 6 Feb 2022 | ☑ | 0 |
| 15 | Mia | Clark | Austin | 78701 | USA | 9 Mar 2022 | ☑ | 0.05 | |
| 16 | Chloe | Hall | Seattle | 98101 | USA | 4 May 2022 | ☐ | 0.03 | |
| 17 | Market Street Clinic | Sophia | Johnson | Boston | 02108 | USA | 4 Jun 2023 | ☑ | 0 |
| 18 | Roth Legal | Mia | Wright | Manchester | M1 1AE | UK | 23 Sep 2022 | ☑ | 0.05 |
| 19 | Northlight Inc | Grace | Wright | UK | 16 Dec 2023 | ☐ | 0.03 | ||
| 20 | Northlight Inc | Olivia | Brown | Boston | 02108 | USA | 19 Jun 2023 | ☐ | 0.03 |
| 21 | Liam | Brown | Boston | 02108 | USA | 23 Jun 2025 | ☐ | 0.03 | |
| 22 | Bauer Ltd | James | Johnson | Manchester | M1 1AE | UK | 5 Jun 2025 | ☐ | 0.05 |
| 23 | Noah | Wilson | Austin | 78701 | USA | 23 May 2022 | ☐ | 0 | |
| 24 | Market Street Clinic | James | Smith | Bristol | BS1 4DJ | UK | 16 Jan 2022 | ☐ | 0.1 |
| 25 | Northlight Inc | Sophia | Hall | Denver | 80202 | USA | 4 Aug 2025 | ☑ | 0 |
This exercise is part of Premium.
Premium unlocks every exercise in every lesson, unlimited practice with fresh tasks and the final test with certificate.
See Premium Already Premium? Log in
The first exercise in this lesson is free.
In real Access
- Select the table in the Navigation Pane, then Create, Form: Access builds a form with every field at once. For an empty form use Form Design.
- F4 opens the Property Sheet. Choose “Form” at the top, Data tab, Record Source.
- Add a text box (Form Design tab, Controls), select it and set its Control Source in the Property Sheet. The Expression Builder (… next to the box) helps.
- Check it with View, Form View; move through the records in the navigation bar at the bottom.
Common mistakes
A field called “Name”
In a form, [Name] means the name of the form itself. A text box with =[Name] therefore shows “Form1”. Do not call fields or controls “Name”.
A control named like a field but calculated
If a text box is called “UnitPrice” and calculates =[UnitPrice]*1.2, you get a circular reference. Give controls a prefix instead: txtGross.
Forgetting the equals sign
Without =, Access takes [UnitPrice]*[UnitsInStock] for a field name and shows #Name?.
FAQ
Form or datasheet?
A datasheet shows many records as a table; a form shows one record clearly with labels and calculations. For data entry by others, a form is safer.
Can the Record Source be a query?
Yes, a saved query or a SELECT statement. The form then shows only the query’s records, such as open orders only.