G
Guest
I have a query question I hope someone can help with.
I have a table that contains an order date and an amount on each line among
other items. The table is basically a list of sales, so there are many
entries for each salesman and dealer.
From that table I need to gather the following information. I need one
column to contain the amount summed YTD per dealer. The other column I need
to contain the amount summed for the month per dealer. The date on each line
is in the format 20050101.
I can get this to work individually just fine, e.g. the total for the month
OR the total YTD, but not both in the same query.
I have tried several methods to try to do this including using the criteria
field and trying to customize the SQL statements. From what I can tell Access
only allows one SELECT statement per query, so I don’t know how to write it
to get both.
The end goal is to create a report showing sales comparisons against last
year for the month and YTD. If it is not possible to do this with the query
is it a better idea to try to use more than one query in the report?
Any help would be greatly appreciated.
Ken
I have a table that contains an order date and an amount on each line among
other items. The table is basically a list of sales, so there are many
entries for each salesman and dealer.
From that table I need to gather the following information. I need one
column to contain the amount summed YTD per dealer. The other column I need
to contain the amount summed for the month per dealer. The date on each line
is in the format 20050101.
I can get this to work individually just fine, e.g. the total for the month
OR the total YTD, but not both in the same query.
I have tried several methods to try to do this including using the criteria
field and trying to customize the SQL statements. From what I can tell Access
only allows one SELECT statement per query, so I don’t know how to write it
to get both.
The end goal is to create a report showing sales comparisons against last
year for the month and YTD. If it is not possible to do this with the query
is it a better idea to try to use more than one query in the report?
Any help would be greatly appreciated.
Ken