473,320 Members | 1,794 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Totals In Crosstab Query

Tom
I have a report based on a crosstab query that shows monthly automobile sales.
The report is grouped on Make so that it shows the models under each Make. I
want to now get the subtotals by Make and then the total for all for each month.
I find that the control source for the textboxes in the detail section have a
date value such as Jan_03 rather than dollars but when I run the report dollars
appears in the report. Obviously I can't sum up dates. How do I get the subtotal
sales for each make and the toatal sales for all makes for each month?

Thanks for all help!

Tom
Nov 12 '05 #1
3 2798
DFS
Post your table structures and it will be easier to help you.
"Tom" <th*******@bellsouth.net> wrote in message
news:Bq***************@newsread2.news.atl.earthlin k.net...
I have a report based on a crosstab query that shows monthly automobile sales. The report is grouped on Make so that it shows the models under each Make. I want to now get the subtotals by Make and then the total for all for each month. I find that the control source for the textboxes in the detail section have a date value such as Jan_03 rather than dollars but when I run the report dollars appears in the report. Obviously I can't sum up dates. How do I get the subtotal sales for each make and the toatal sales for all makes for each month?

Thanks for all help!

Tom

Nov 12 '05 #2
Tom
Thank you for responding!

Here is my crosstab query the report is based on:

Model Row Heading GroupBy
Make Row Heading GroupBy
Expr1:Format([SaleDate],"mmm-yy") Column Heading GroupBy
SalesDollar:Sum(AutoSales) Value Expression

I have Grouping by Make with a Group Header And Footer.

The report comes out correctly where each Make is grouped and the models are
listed under their respective Make. The first field in the detail section was
assigned a name by Access of Jan_03 and shows unbound in design view. I want to
get the subtotal for each Make and an over all total for each month.

Thanks!

Tom
"DFS" <no******@nospam.com> wrote in message
news:vt************@corp.supernews.com...
Post your table structures and it will be easier to help you.
"Tom" <th*******@bellsouth.net> wrote in message
news:Bq***************@newsread2.news.atl.earthlin k.net...
I have a report based on a crosstab query that shows monthly automobile

sales.
The report is grouped on Make so that it shows the models under each Make.

I
want to now get the subtotals by Make and then the total for all for each

month.
I find that the control source for the textboxes in the detail section

have a
date value such as Jan_03 rather than dollars but when I run the report

dollars
appears in the report. Obviously I can't sum up dates. How do I get the

subtotal
sales for each make and the toatal sales for all makes for each month?

Thanks for all help!

Tom


Nov 12 '05 #3
DFS
Tom,

Again, post your table structures and it will be easier to help you.


"Tom" <th*******@bellsouth.net> wrote in message
news:Hl****************@newsread2.news.atl.earthli nk.net...
Thank you for responding!

Here is my crosstab query the report is based on:

Model Row Heading GroupBy
Make Row Heading GroupBy
Expr1:Format([SaleDate],"mmm-yy") Column Heading GroupBy
SalesDollar:Sum(AutoSales) Value Expression

I have Grouping by Make with a Group Header And Footer.

The report comes out correctly where each Make is grouped and the models are listed under their respective Make. The first field in the detail section was assigned a name by Access of Jan_03 and shows unbound in design view. I want to get the subtotal for each Make and an over all total for each month.

Thanks!

Tom
"DFS" <no******@nospam.com> wrote in message
news:vt************@corp.supernews.com...
Post your table structures and it will be easier to help you.
"Tom" <th*******@bellsouth.net> wrote in message
news:Bq***************@newsread2.news.atl.earthlin k.net...
I have a report based on a crosstab query that shows monthly
automobile sales.
The report is grouped on Make so that it shows the models under each
Make. I
want to now get the subtotals by Make and then the total for all for
each month.
I find that the control source for the textboxes in the detail section

have a
date value such as Jan_03 rather than dollars but when I run the
report dollars
appears in the report. Obviously I can't sum up dates. How do I get
the subtotal
sales for each make and the toatal sales for all makes for each month?

Thanks for all help!

Tom



Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Nathan Bloomfield | last post by:
Does anyone know if there is any documentation which relates to Access2k + ? or can anyone help adjust the code? I am having trouble converting the DAO references. TITLE :INF: How to...
2
by: Sherman H. | last post by:
I have a few questions for crosstab and popup form questions: 1. I created a crosstab as follows: IT Financial Operation John 21 22 ...
4
by: Judy | last post by:
I'm using Access 2003 and was wondering if it is possible to have a paramater selection within a crosstab query so that I wouldn't need to build a new table. I have a select query that I'm using...
3
by: lorirobn | last post by:
Hello, I'm creating a one-page report that will display only total counts, no details. I want to examine the values of 2 fields on the source table, and add to appropriate counters accordingly....
7
by: newguy | last post by:
I am trying to get the totals of a table by client by type of income. This query will get what I am looking for with each unique combination as a row: SELECT Sales.Client, BillCode.Type,...
6
by: KashMarsh | last post by:
Trying to show running totals on a report, except it needs to show one total amount and values being subtracted from it. For example, the report shows a Total Inventory amount (TotInvAmt). And...
8
by: Penny | last post by:
(Access 2003 Multiuser Split DB, Windows XP Pro) Hi All, I would really appreciate just some basic tips on how to make a Crosstab Form based on a Crosstab Query. The query always has the same...
3
by: Jim Andersen | last post by:
Hi, Am using robvolks crosstab-procedure to generate a crosstab query. I get this result: Total A B C juli 455 1 107 347 okt 83 1 9 73 aug 612 1...
4
by: m.wanstall | last post by:
I have a crosstab query that compiles data for Months of the year. I have a stacked select query on top of that crosstab query that uses the latest 2 months data and exports it to a fixed length...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.