473,770 Members | 1,870 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.cdep rim, Count(term_cont .cont_dte) AS CountOfcont_dte ,
term_cont.dis_t ypecde
FROM stud_basic RIGHT JOIN term_cont ON stud_basic.stud id =
term_cont.stud_ id
GROUP BY stud_basic.cdep rim, term_cont.dis_t ypecde
HAVING (((stud_basic.c deprim)<>"") AND ((term_cont.dis _typecde)="P"))
ORDER BY stud_basic.cdep rim;
3. count contact by secondary code
SELECT stud_basic.cde2 nd, Count(term_cont .cont_dte) AS CountOfcont_dte ,
term_cont.dis_t ypecde
FROM stud_basic RIGHT JOIN term_cont ON stud_basic.stud id =
term_cont.stud_ id
GROUP BY stud_basic.cde2 nd, term_cont.dis_t ypecde
HAVING (((stud_basic.c de2nd)<>"") 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...Visio n 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 1942
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******@elcam ino.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.cdep rim, Count(term_cont .cont_dte) AS CountOfcont_dte ,
term_cont.dis_t ypecde
FROM stud_basic RIGHT JOIN term_cont ON stud_basic.stud id =
term_cont.stud_ id
GROUP BY stud_basic.cdep rim, term_cont.dis_t ypecde
HAVING (((stud_basic.c deprim)<>"") AND ((term_cont.dis _typecde)="P"))
ORDER BY stud_basic.cdep rim;
3. count contact by secondary code
SELECT stud_basic.cde2 nd, Count(term_cont .cont_dte) AS CountOfcont_dte ,
term_cont.dis_t ypecde
FROM stud_basic RIGHT JOIN term_cont ON stud_basic.stud id =
term_cont.stud_ id
GROUP BY stud_basic.cde2 nd, term_cont.dis_t ypecde
HAVING (((stud_basic.c de2nd)<>"") 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...Visio n 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
2737
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 part of the page tends to be simple and homegeneous (each "block" tends to have similar content) as it's just a part of the page (the template are complex). The pages are commercial rather than educational. How many types of headings does a...
3
3114
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 in it, then insert some switching lines some of which go to lower level boards. The lower level boards pu\ick up the same headings as the main board! I would like to have headings such as: Main menu Client Menu Associates Menu
3
4166
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 needs to read like: Sept01 to Aug02 Sept02 to Aug03 Sept03 to Aug04 Can anyone give me a recommendation on how to get from the Date field to these Column Headings? I then would like to set criteria where I can select something that...
1
367
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 column is just for row title constants identifying the rows on the report. the report should look like this: Hearing ABIs Vision Mobility etc....9th Total Primary Unweighted 9999 9999 9999 9999 ........... 999999
7
3571
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 students in that program are printed. I want the subreports headings to print only for the first student on the page. Is there a way to suppress printing of the headings on subsequent students on that page? I tried the following in both the...
3
4865
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 there any way of including column headings when copying/pasting from a running datagrid to notepad? At this stage it looks like I have to write my own code but would rather not if someone knows how to do it.
2
2936
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 I make a Crosstab Query that shows all rows, regardless they have values in column headings. For instance, the result that I get now is like this
22
2519
by: Spartanicus | last post by:
I wrote an article on HTML headings: http://codewallop.110mb.com/goodpractice/headingology.htm -- Spartanicus
0
1280
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. I want to do this to create some meta files (.pdf.desc). Most libraries that I've seen give the methods to write the headings but not read them. How can I do this? Thanks Pete
2
1529
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 = imagecreatetruecolor($_GET, 18); $white = imagecolorallocate($im, 255, 255, 255);
0
9453
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
10099
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
10036
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
8929
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...
1
7451
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5354
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...
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3607
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2849
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.