473,385 Members | 1,331 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,385 software developers and data experts.

constants as row headings

FYI Mr/Ms McDermott. sorry if i'm giving too much info and thank you
for replying to my query. hope this will make my problem clearer.

The term_cont table contains the contact records (with contact codes)
which I count per primary code (from stud_basic), per secondary code
(from stud_basic) and multiply with their relevant weights.

Hope this helps. TIA.
the report is based on the following queries
1. SELECT dis_codes_multi.dis_sort, dis_codes_multi.dis_code, [count
contact by primary code].cdeprim, Nz([Count contact by primary
code].[CountOfcont_dte],0) AS Pcnt, dis_codes_multi.wt_prim,
(([Pcnt])*([wt_prim])) AS pwt, [count contact by secondary code].cde2nd,
Nz([Count contact by secondary code].[CountOfcont_dte],0) AS Scnt,
dis_codes_multi.wt_sec, (([Scnt])*([wt_sec])) AS Swt
FROM dis_codes_multi LEFT JOIN ([count contact by primary code] LEFT
JOIN [count contact by secondary code] ON [count contact by primary
code].cdeprim = [count contact by secondary code].cde2nd) ON
dis_codes_multi.dis_code = [count contact by primary code].cdeprim
ORDER BY dis_codes_multi.dis_sort;
2. count contact by primary
SELECT stud_basic.cdeprim, Count(term_cont.cont_dte) AS CountOfcont_dte,
term_cont.dis_typecde
FROM stud_basic RIGHT JOIN term_cont ON stud_basic.studid =
term_cont.stud_id
GROUP BY stud_basic.cdeprim, term_cont.dis_typecde
HAVING (((stud_basic.cdeprim)<>"") AND ((term_cont.dis_typecde)="P"))
ORDER BY stud_basic.cdeprim;
3. count contact by secondary code
SELECT stud_basic.cde2nd, Count(term_cont.cont_dte) AS CountOfcont_dte,
term_cont.dis_typecde
FROM stud_basic RIGHT JOIN term_cont ON stud_basic.studid =
term_cont.stud_id
GROUP BY stud_basic.cde2nd, term_cont.dis_typecde
HAVING (((stud_basic.cde2nd)<>"") AND ((term_cont.dis_typecde)="S"));
and the following tables:
a. stud_basic
studid text
lastnam text
firstnam text
cdeprim text
strtpri date/time
endpri date/time
cde2nd text
strt2nd date/time
end2nd date/time
change_date date/time
stat_sw text

b. term_cont
stud_term text
stud_id text
cont_dte date/time
cont_cde text
dis_typecde text


-----------------------------------------------------------
From: mjobrien
Date Posted: 11/26/2004 9:33:00 PM

i created a query with the intention of creating a columnar (9 columns)
report with the 10th column as a horizontal total of the records. i
didn't think i needed a crosstab query because my first column is just
for row title constants identifying the rows on the report. the report
should look like this:

Hearing...Vision etc..to 9th Total
Primary Unweighted 9999 9999 ........... 999999
Scndary Unweighted 9999 9999 ........... 999999
Prim/Sec weighted 9999.99 9999.99........... 99999.99

the first column are merely constants identifying the row data. i
created a columnar report with nine columns and a query sorted the way
the column headings are set. the column headings are in the Page header
area. i set the left margin to 2 and the right on .5 with landscape
orientation to start the columns where they are on above
report. all the data for the three rows and 9 columns appeared where
they were supposed to appear. my first problem is the 10th column. i
created a calculated field with this control source
=Sum(Nz([Pcnt],0))---nothing appears in this column. Pcnt is the data
field for the columns of the first row and i'm trying to add up
horizontally.
The second problem is how do i display the first column constants in the
margin? is that possible? or is there another way to create this
report.

please reply with any idea. TIA

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #1
1 1920
Thanks for replying.
I'm afraid I'm still not very clear on this.
The SELECT query you say underlies your report seems to return 9 columns -
briefly:
dis_sort
dis_code
cdeprim
Pcnt
wt_prim
pwt
cde2nd
Scnt
Swt
I'm afraid your naming conventions, while they may be meaningful to you, are
a bit too obtuse for an outsider like me to be comfortable wading through,
so I'll take your word for it that they produce the columns you want.
The sum of these columns in any row would be
=[dis_sort] + [dis_code] + [cdeprim] + [Pcnt]...

HTH
- Turtle

"maria obrien" <mj******@elcamino.edu> wrote in message
news:41**********************@news.newsgroups.ws.. .
FYI Mr/Ms McDermott. sorry if i'm giving too much info and thank you
for replying to my query. hope this will make my problem clearer.

The term_cont table contains the contact records (with contact codes)
which I count per primary code (from stud_basic), per secondary code
(from stud_basic) and multiply with their relevant weights.

Hope this helps. TIA.
the report is based on the following queries
1. SELECT dis_codes_multi.dis_sort, dis_codes_multi.dis_code, [count
contact by primary code].cdeprim, Nz([Count contact by primary
code].[CountOfcont_dte],0) AS Pcnt, dis_codes_multi.wt_prim,
(([Pcnt])*([wt_prim])) AS pwt, [count contact by secondary code].cde2nd,
Nz([Count contact by secondary code].[CountOfcont_dte],0) AS Scnt,
dis_codes_multi.wt_sec, (([Scnt])*([wt_sec])) AS Swt
FROM dis_codes_multi LEFT JOIN ([count contact by primary code] LEFT
JOIN [count contact by secondary code] ON [count contact by primary
code].cdeprim = [count contact by secondary code].cde2nd) ON
dis_codes_multi.dis_code = [count contact by primary code].cdeprim
ORDER BY dis_codes_multi.dis_sort;
2. count contact by primary
SELECT stud_basic.cdeprim, Count(term_cont.cont_dte) AS CountOfcont_dte,
term_cont.dis_typecde
FROM stud_basic RIGHT JOIN term_cont ON stud_basic.studid =
term_cont.stud_id
GROUP BY stud_basic.cdeprim, term_cont.dis_typecde
HAVING (((stud_basic.cdeprim)<>"") AND ((term_cont.dis_typecde)="P"))
ORDER BY stud_basic.cdeprim;
3. count contact by secondary code
SELECT stud_basic.cde2nd, Count(term_cont.cont_dte) AS CountOfcont_dte,
term_cont.dis_typecde
FROM stud_basic RIGHT JOIN term_cont ON stud_basic.studid =
term_cont.stud_id
GROUP BY stud_basic.cde2nd, term_cont.dis_typecde
HAVING (((stud_basic.cde2nd)<>"") AND ((term_cont.dis_typecde)="S"));
and the following tables:
a. stud_basic
studid text
lastnam text
firstnam text
cdeprim text
strtpri date/time
endpri date/time
cde2nd text
strt2nd date/time
end2nd date/time
change_date date/time
stat_sw text

b. term_cont
stud_term text
stud_id text
cont_dte date/time
cont_cde text
dis_typecde text


-----------------------------------------------------------
From: mjobrien
Date Posted: 11/26/2004 9:33:00 PM

i created a query with the intention of creating a columnar (9 columns)
report with the 10th column as a horizontal total of the records. i
didn't think i needed a crosstab query because my first column is just
for row title constants identifying the rows on the report. the report
should look like this:

Hearing...Vision etc..to 9th Total
Primary Unweighted 9999 9999 ........... 999999
Scndary Unweighted 9999 9999 ........... 999999
Prim/Sec weighted 9999.99 9999.99........... 99999.99

the first column are merely constants identifying the row data. i
created a columnar report with nine columns and a query sorted the way
the column headings are set. the column headings are in the Page header
area. i set the left margin to 2 and the right on .5 with landscape
orientation to start the columns where they are on above
report. all the data for the three rows and 9 columns appeared where
they were supposed to appear. my first problem is the 10th column. i
created a calculated field with this control source
=Sum(Nz([Pcnt],0))---nothing appears in this column. Pcnt is the data
field for the columns of the first row and i'm trying to add up
horizontally.
The second problem is how do i display the first column constants in the
margin? is that possible? or is there another way to create this
report.

please reply with any idea. TIA

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 13 '05 #2

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

Similar topics

20
by: Jeff Thies | last post by:
I'm working on yet another online editor, this allows non html savy people to add "blocks" that may contain paragraphs, headings, lists and images to the editable part of a template. The editable...
3
by: John Baker | last post by:
Hi: I know there are mixed views about the switchboard function, but i would like to consider using it anyway. One snag I have found is that you create a Main Switchboard, and put some headings...
3
by: Paula | last post by:
I need to do a summary using a crosstab query. The data has a Date field (Not named "Date"). I can do the Row Heading and Value but am having trouble with the Column Heading. The summary Columns...
1
by: mjobrien | last post by:
i created a query with the intention of creating a columnar (9 columns) report with the 10th column as a horizontal total of the records. i didn't think i needed a crosstab query because my first...
7
by: Ellen Manning | last post by:
I've got an A2K report showing students and their costs. Student info is in the main report and costs are in a subreport for each student. The user inputs the program desired then only those...
3
by: PeterZ | last post by:
Hi, In a running C# app with a datagrid control I select all rows in the dataGrid using CTRL-A, I then paste into some other app like notepad or Word but the column headings get left off. Is...
2
by: Nenad Markovic | last post by:
Hi everybody, When executing a Crosstab Query I see only rows (defined in a row heading) that have values (defined in value field) in at least one column (defined as column headings). How can...
22
by: Spartanicus | last post by:
I wrote an article on HTML headings: http://codewallop.110mb.com/goodpractice/headingology.htm -- Spartanicus
0
by: petejones | last post by:
I have a directory of PDF files which contain Headings/Sub Headings and Page Numbers. I wish to write a script to open the PDF, read the Headings and any sub headings and write them out to a file....
2
by: neovantage | last post by:
Hey, i have found a code which generate headings at run time. here is my code which generate headings at run time <img src="generate-headings.php?w=125&amp;hd=Code" /> $im =...
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...
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.