473,407 Members | 2,315 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,407 software developers and data experts.

Subtotals on unpredictable key within a report

Hi:

I have a situation where I have a series of time records (one or more per day) for a
number of projects. Each record has an identification for the activity conducted during
the period recorded. For any project, the activity may be one of many things, and the
activities may vary by project number.

I need to run a report and end up with a list of all the times reported, and totals by the
project number and the activity, as well as totals by Reporting individual, project
number, activity. I am having a little trouble with the activity piece, since you cant
predict the categories that will come up. I have tried pivot tables, but find that I have
to merge the pivot table back into the report using a spreadsheet (Excel), and that gets a
bit hairy round the edges. Before I end this madness, there may be one other category that
surfaces, but that's for the client to determine. Right now I am trying to figure out the
architectures for a solution, then I will execute the solution!

Anyone got any suggestions?
Totals would be

Project
Activity

and

Employee

Project
Activity
Regards

John Baker
Nov 12 '05 #1
3 2084
Had what I think was a similar problem with an unknown number of races in a
series of races and needed to produce a report with a column for the
position of the boat in each race.
The basis of the solution is a temporary crosstab query programatically.
This will include all your unknown nunber of categories.
Then, again programattically you can check what columns there are in your
temporary query and create a report with the position of each column
positioned to the right of the previous column.

It's a lot of coding, but it works OK

The code for creating the crosstab query is so specific that it is not worth
sending, but if you want, I will send you the code for creating the report,
which again is specific but could be doctored (butchered would be closer)

Phil
"John Baker" <Ba******@Verizon.net> wrote in message
news:ls********************************@4ax.com...
Hi:

I have a situation where I have a series of time records (one or more per day) for a number of projects. Each record has an identification for the activity conducted during the period recorded. For any project, the activity may be one of many things, and the activities may vary by project number.

I need to run a report and end up with a list of all the times reported, and totals by the project number and the activity, as well as totals by Reporting individual, project number, activity. I am having a little trouble with the activity piece, since you cant predict the categories that will come up. I have tried pivot tables, but find that I have to merge the pivot table back into the report using a spreadsheet (Excel), and that gets a bit hairy round the edges. Before I end this madness, there may be one other category that surfaces, but that's for the client to determine. Right now I am trying to figure out the architectures for a solution, then I will execute the solution!

Anyone got any suggestions?
Totals would be

Project
Activity

and

Employee

Project
Activity
Regards

John Baker

Nov 12 '05 #2
Phil:

Thanks a lot.

I am a bit of a neophyte in Access and any help is much appreciated. If you could send the
code it would be great.It would give me some sense of direction as I try and tackle his
issue. Were you able to roll the whole thing back into an Access report, or did you end up
using Excel to produce the final document?

Regards
John Baker
"Phil Stanton" <ph**@stantonfamily.co.uk> wrote:
Had what I think was a similar problem with an unknown number of races in a
series of races and needed to produce a report with a column for the
position of the boat in each race.
The basis of the solution is a temporary crosstab query programatically.
This will include all your unknown nunber of categories.
Then, again programattically you can check what columns there are in your
temporary query and create a report with the position of each column
positioned to the right of the previous column.

It's a lot of coding, but it works OK

The code for creating the crosstab query is so specific that it is not worth
sending, but if you want, I will send you the code for creating the report,
which again is specific but could be doctored (butchered would be closer)

Phil
"John Baker" <Ba******@Verizon.net> wrote in message
news:ls********************************@4ax.com.. .
Hi:

I have a situation where I have a series of time records (one or more per

day) for a
number of projects. Each record has an identification for the activity

conducted during
the period recorded. For any project, the activity may be one of many

things, and the
activities may vary by project number.

I need to run a report and end up with a list of all the times reported,

and totals by the
project number and the activity, as well as totals by Reporting

individual, project
number, activity. I am having a little trouble with the activity piece,

since you cant
predict the categories that will come up. I have tried pivot tables, but

find that I have
to merge the pivot table back into the report using a spreadsheet (Excel),

and that gets a
bit hairy round the edges. Before I end this madness, there may be one

other category that
surfaces, but that's for the client to determine. Right now I am trying to

figure out the
architectures for a solution, then I will execute the solution!

Anyone got any suggestions?
Totals would be

Project
Activity

and

Employee

Project
Activity
Regards

John Baker


Nov 12 '05 #3
I just finished a payroll db w/ similar situation. Reports with the
job category and with employees hours depicted.

In Reports I had to "Group by" job code and then "group by"
employees(I used first name of employee). In the details the name and
hours worked by employees.

In the group number footer is where I put the first sum equation for
job number totals to appear. Then a second sum total in the first name
footer. In the end you get two totals. One total for the job number
each employee worked for the time period specified and another total
combining all the job numbers combined. I also created a report
summarizing all the job numbers with all the total for that time
period specified as well. Hope I helped.
John Baker <Ba******@Verizon.net> wrote in message news:<ls********************************@4ax.com>. ..
Hi:

I have a situation where I have a series of time records (one or more per day) for a
number of projects. Each record has an identification for the activity conducted during
the period recorded. For any project, the activity may be one of many things, and the
activities may vary by project number.

I need to run a report and end up with a list of all the times reported, and totals by the
project number and the activity, as well as totals by Reporting individual, project
number, activity. I am having a little trouble with the activity piece, since you cant
predict the categories that will come up. I have tried pivot tables, but find that I have
to merge the pivot table back into the report using a spreadsheet (Excel), and that gets a
bit hairy round the edges. Before I end this madness, there may be one other category that
surfaces, but that's for the client to determine. Right now I am trying to figure out the
architectures for a solution, then I will execute the solution!

Anyone got any suggestions?
Totals would be

Project
Activity

and

Employee

Project
Activity
Regards

John Baker

Nov 12 '05 #4

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

Similar topics

2
by: Scott | last post by:
How can you show SUBTOTALS in the same column as the data, NOT in a separate column? I need to SUBTOTAL in the same column as one of the the data columns, like the subtotals 700 and 800 under...
1
by: Andy V | last post by:
Hi. I've got a multi page report of my monthly purchases. I'd like a running total (month to date) at the end of each page and to have that total at the top of the following page. So far all I can...
38
by: vashwath | last post by:
Might be off topic but I don't know where to post this question.Hope some body clears my doubt. The coding standard of the project which I am working on say's not to use malloc.When I asked my...
4
by: javatopia | last post by:
Hello, I am trying to show a Crystal Reports 10 Enterprise report in an ASP.NET page (C#). I can run the report via the admin console just fine. When I try to show the report, after setting up...
4
by: Jerry LeVan | last post by:
Is is possible, via some clever sql coding ( perhaps with PL/pgsql) to get subtotals to appear in a selection, ie If I have a query: select * from checks order by category I would like the have...
3
by: Greg | last post by:
I have a database that tracks the vacation time of each employee of the company that I work for. Everything works great and totals all of the vacation time that has been used. Could someone give me...
8
by: xian2 | last post by:
Hi, I have two subreports on my report and they both have a subtotal in the subreport footer section. I have managed to work out how to call the subtotals in to the main form: =!!.. =!!..
0
by: Paul Ilacqua | last post by:
I'm using VB .NET and I'm trying to "roll my own" report subtotals. I'm building a string from a datareader top pass to a reporting class and I want to break and subtotal QTY at each change in...
2
by: =?Utf-8?B?SHV0dHk=?= | last post by:
I have searched the net but have been unable to find a solution to subtotaling in a gridview. I have a gridview that is bounded to sqldatasource where I would like to subtotal rows throughout the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
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...
0
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.