How to Populate Microsoft Access Form Fields from a Drop-Down Selection
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.
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.
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.
Right-click your destination form in the Navigation Pane and select 'Design View'.
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.
Type the assignment code for each field. For example: Me.WorkDate.DefaultValue = """" & Forms("frmLandingStage").WorkDate & """"
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.
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. Download WPS Office: Visit the official WPS website to download and install the free office suite.
- 2. Create a New Spreadsheet: Open WPS Spreadsheet and create a new blank workbook to structure your shift reports.
- 3. Apply Data Validation: Use the 'Data Validation' feature under the Data tab to create reusable drop-down lists, preventing repetitive typing.

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.




