Essentially, you need a drop down field that applies a filter functionality to filter corresponding records by the month. Do the following depending on if you are using a subform or not.
Main Form (no subform) - Use ApplyFilter
- Create a combo box either with entered value list selections for all 12 months or with data from a Months table (using hidden or unhidden month number).
- Create a macro or VBA routine for an AfterUpdate or OnClick button event using the command ApplyFilter.
Macro: ApplyFilter FilterName: (leave blank), Where Condition: ="=[Record Month Field]='" & Forms!MainForm!FilterMonthCombo & "'", Control Name: (leave blank)
VBA: DoCmd.ApplyFilter , "[Record Month Field]='" & Me.FilterMonthCombo & "'"
Main Form (with subform) - Use RecordSource
- Create a combo box either with entered value list selections for all 12 months or with data from a Months table (using hidden or unhidden month number).
- Create a VBA routine for an AfterUpdate or OnClick button event to dynamically filter the RecordSource of subform:
VBA: Forms!MainForm!Subform.Form.RecordSource = "SELECT * FROM Records WHERE [Record Month Field]='" & Forms!MainForm!FilterMonthCombo & "'"