logo
search
Others

How to Populate Microsoft Access Form Fields from a Drop-Down Selection

Maira MehtabMaira Mehtab Sep 22, 2026 869 views

Question details

The user needs to automatically carry over drop-down selections (like date, work area, and shift) from a landing form into every new record in a shift-report database.

Product
Microsoft Access
Device & OS
not provided
Scenario
Creating an efficient data-entry workflow where a persistent landing page passes its drop-down values into newly generated records.
Observed behavior
The user wants to avoid manual, repeated data entry for fields that remain constant across multiple new records during a session.
Before you start

Ensure that your primary landing form remains open in the background, as the destination form will need to continuously reference its active drop-down selections.

Solution 1Recommended

Set the DefaultValue Property Using VBA

Use Visual Basic for Applications (VBA) to assign values from the landing form directly to the DefaultValue property of your new form's controls.

By dynamically setting the DefaultValue property when the new form opens, the inherited data is only applied to newly created records. This method guarantees that any existing records in your database will not be accidentally overwritten.

1
Open Destination Form in Design View

Right-click your destination form in the Navigation Pane and select 'Design View'.

2
Access the On Load Event

Select the form, open the Property Sheet, navigate to the 'Event' tab, and click the ellipsis (...) next to 'On Load' to open the VBA editor.

3
Enter the VBA Code

Type the assignment code for each field. For example: Me.WorkDate.DefaultValue = """" & Forms("frmLandingStage").WorkDate & """"

4
Repeat for Additional Fields

Add similar lines of code for your other controls, such as WorkArea and WorkShift, ensuring you reference the correct control names from the landing form.

Naming Convention Best Practices: Always use descriptive control names without spaces. Avoid using reserved system words such as 'Date' to prevent referencing conflicts.
Free Microsoft Office alternative

Try WPS Office for Your Data and Documentation Needs

While Microsoft Access is built for complex relational databases, WPS Office provides a highly compatible, easy-to-use alternative for managing daily data entry, creating spreadsheets, and generating robust reports.

  1. 1. Download WPS Office: Visit the official WPS website to download and install the free office suite.
  2. 2. Create a New Spreadsheet: Open WPS Spreadsheet and create a new blank workbook to structure your shift reports.
  3. 3. Apply Data Validation: Use the 'Data Validation' feature under the Data tab to create reusable drop-down lists, preventing repetitive typing.
Fully compatible with Microsoft Excel (.xlsx) formats for efficient data tracking.Feature-rich Spreadsheets application with advanced Data Validation for easy drop-down lists.Lightweight application with incredibly fast startup times.Completely free to use for everyday office and administrative tasks.
microsoft office alternative - wps office

Frequently Asked Questions

Will using the DefaultValue property overwrite my existing database records?

No. The DefaultValue property only applies when a completely new record is initialized. Any existing data stored in previous records remains completely unaffected.

Why do I need to use four double quotes in the VBA code?

In VBA, using four double quotes ("""") evaluates to a single literal double quote in the final string. This ensures the destination form correctly interprets the passed value as text rather than a variable name.

Can I close the landing form after opening the new record form?

The landing form must remain open (though it can be hidden) as long as you are creating new records. If it is closed, the destination form will not be able to find the referenced drop-down values, resulting in an error.