Paul Gonzaga
New member
- Local time
- Today, 23:58
- Joined
- Jun 8, 2020
- Messages
- 14
Hi there,
Am new to access and trying to accomplish something with combo box. So i have created a combo box on a form where a i can select a month (e.g May 2020). Then when i run a query, it should return only transactions for the selected month. How do i add the combo box selection (of the month) as the criteria in my query and only get records for the for the specified month?
Not: I have the Date field in my table and its what i referenced to in my combo box. In the combo box row Source, i have the select statement below:
SELECT First([tblAdvances].[AdvanceRef]), Format([tblAdvances].[AdvanceDate],"mmmm yyyy") FROM tblAdvances GROUP BY Format([tblAdvances].[AdvanceDate],"mmmm yyyy"), Format([tblAdvances].[AdvanceDate], "yyyy mm") ORDER BY Format([tblAdvances].[AdvanceDate], "yyyy mm");
Attached i the form sample.
I appreciate any help offered.
Paul
Am new to access and trying to accomplish something with combo box. So i have created a combo box on a form where a i can select a month (e.g May 2020). Then when i run a query, it should return only transactions for the selected month. How do i add the combo box selection (of the month) as the criteria in my query and only get records for the for the specified month?
Not: I have the Date field in my table and its what i referenced to in my combo box. In the combo box row Source, i have the select statement below:
SELECT First([tblAdvances].[AdvanceRef]), Format([tblAdvances].[AdvanceDate],"mmmm yyyy") FROM tblAdvances GROUP BY Format([tblAdvances].[AdvanceDate],"mmmm yyyy"), Format([tblAdvances].[AdvanceDate], "yyyy mm") ORDER BY Format([tblAdvances].[AdvanceDate], "yyyy mm");
Attached i the form sample.
I appreciate any help offered.
Paul
Last edited: