473,796 Members | 2,517 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2821
DFS
Post your table structures and it will be easier to help you.
"Tom" <th*******@bell south.net> wrote in message
news:Bq******** *******@newsrea d2.news.atl.ear thlink.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******@nospa m.com> wrote in message
news:vt******** ****@corp.super news.com...
Post your table structures and it will be easier to help you.
"Tom" <th*******@bell south.net> wrote in message
news:Bq******** *******@newsrea d2.news.atl.ear thlink.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*******@bell south.net> wrote in message
news:Hl******** ********@newsre ad2.news.atl.ea rthlink.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******@nospa m.com> wrote in message
news:vt******** ****@corp.super news.com...
Post your table structures and it will be easier to help you.
"Tom" <th*******@bell south.net> wrote in message
news:Bq******** *******@newsrea d2.news.atl.ear thlink.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
17679
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 Create a Dynamic Crosstab Report PRODUCT :Microsoft Access PROD/VER:1.00 1.10 OPER/SYS:WINDOWS
2
3049
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 22 Mary 15 17 16 Joe 28 29 31 For some other instances, the Operation column was not created because the
4
8144
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 to build the crosstab query from. In the select query I'm prompting for a specific quarter but when I go to run the crosstab it doesn't seem to like the parameter that has been put on the select query and returns a message of "The Microsoft Jet...
3
2015
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. MattressSize can have 3 values, Condition can have 5 values. Therefore I have 15 unbound text boxes in the report's Footer section which have counts of the combinations of these 2 fields. My question is: where do I put the logic to look at...
7
1906
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, Sum(Sales.Amount) FROM Invoice_Details INNER JOIN BillCode ON Sales.BillCode = BillCode.id GROUP BY Client, Type;
6
2944
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 then amounts for each month for the orders like JanAmt, FebAmt, etc. I want to show under each month column the following: (TotInvAmt)-(JanAmt)=B ----result shows under the Jan column B-(FebAmt)=C ---------result shows under the Feb column...
8
6079
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 number of records(generated from a table of predefined 'timeslots'). The number of columns(one for each Consultant) varies depending on how many of the Consultants have a yes/no field('Participates') set to yes. Therefore the Crosstab query...
3
1790
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 113 498 juni 451 1 108 342
4
6480
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 flat file. Ideally I would like to be able to just select the Last 2 Columns of the Crosstab query as inputs to the Select query WITHOUT having to go in month after month and manually change it... I may be asking a bit much here but is there a...
0
9684
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9530
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10459
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10236
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10182
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10017
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9055
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5445
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5577
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.