Watch Mainform + Subforms designed for efficiency and flexibility

Posted on
6,547 Points
Last Modified:
Experience Level: Beginner
crystal (strive4peace) - Microsoft MVP, Access
Love empowering people by teaching and helping them develop applications.
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. When a sale is made, it may be paid outright, carried in-house, or purchased by a finance company.

Using a mainform with subforms allows data entry into multiple tables with referential integrity. There are also calculations, and ways to find and filter information; Synchronizing subforms so they update with the record changes using LinkMasterFields and LinkChildFields; Calculating sum and total number of orders and payments, and the balance due; Displaying the company logo; and more.

Learn how to undo creating a new record, use shortcuts and quick ways to enter data, and about setting the Enter key behavior in the Access Options so pressing Enter goes down one row, just like in Excel. See how easy it can be to disburse all the is remaining on an allocated amount left to a single order.

See how Anchoring subforms and controls enables them to stretch and shrink as the display area changes.

Future lessons will go into the nuts and bolts of how this form works, address issues, fix problems (there are some), and enhance capabilities.


Did you learn something new?

Please Like, Comment, and Share with your friends. Thank you.

Through sharing, we will all get better.

have an awesome day,

Video Steps

1. Download sample database

   ACCDB Mainform-Subforms_Payment.zip
   This is the data entry form: image showing Mainform and Subforms for payment information

2. Use a form as a mainform to display and edit data in a main table.

3. Use subforms to display and edit data in related tables.

 - Use LinkMasterFields and LinkChildFields to synchronize bound subforms.

4. Use unbound combo boxes and list boxes to find and filter records, and bound controls to pick values while showing data from related tables

5. Include a button to show ALL records to undo filters.

6. Allocate checks and charges over open orders.

7. Update calculations when the information affecting them is changed.

8. Press Shift-F2 for the Zoom box.

9. Press ESCape to undo a change to a control, and ESCape, again if necessary, to undo a record.

10. Anchor subforms and controls so they stretch and shrink as a window is made bigger and smaller, or a form resized.


Suggested Videos

Title Views Activity
Shuffle - 3 - Table Design 9
Query data with no SQL code (5) 14
Query data with no SQL code (6) 21
Query data with no SQL code (9) 15
The Indian number format for currency has groups of two and three digits. The native Format function of VBA cannot handle this if Windows is set for a Western localisation. Thus, a custom method must be applied. Here it will be shown how to use dyna…
Public Folders in Exchange Server - Amazingly flexible and a lot more than just emails.