I have an Access database with one table called "Transactions." This table contains an AutoNum primary key, TransactionDate, TransactionAmount, EmployeeID, and CompanyID fields. I am trying to create a query that will accept a date range input from the user, calculate the sum of TransactionAmount for that date range, and then group the results by the month. What I'm after here is monthly totals.
I've gone through the query creation wizard and it will group all of the sums by month, but it automatically converts the display of the month to MMMM, YYYY format. This results in an alphabetical listing of the months, i.e. April, 2006 being displayed, then April 2007, etc. I would prefer this to be in chronological order, rather than alphabetical.
I have tried to force the wizard-generated query to accept a date range as input, but then the query displays no data at all.
I have also tried to create a query from scratch that accepts the date input and generates the sum of transactions. This results in the data being grouped by the day, rather than month, on which the transactions occurred.
I know there is probably a way to do this with SQL statements, but I'm not programming savvy. Any help would be appreciated.
Thanks,
SK
I've gone through the query creation wizard and it will group all of the sums by month, but it automatically converts the display of the month to MMMM, YYYY format. This results in an alphabetical listing of the months, i.e. April, 2006 being displayed, then April 2007, etc. I would prefer this to be in chronological order, rather than alphabetical.
I have tried to force the wizard-generated query to accept a date range as input, but then the query displays no data at all.
I have also tried to create a query from scratch that accepts the date input and generates the sum of transactions. This results in the data being grouped by the day, rather than month, on which the transactions occurred.
I know there is probably a way to do this with SQL statements, but I'm not programming savvy. Any help would be appreciated.
Thanks,
SK