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

Query for Report

I am helping a non-profit track their elder clients and care given to
the clients.

The organization would like a report that shows various info on ALL
clients, such as:
# in each town,
# and Percent Male, Female, Smoker,
# in age range
# that use wheelchair or walker.

I have the information on tblClients, and the "condition" (wheelchair
or walker) on a different table (tblIntakeConditions) with a
relationship table (trelIntakeConditions) that shows the clientkey and
the condition key (there can be multiple conditions per client).

I don't know how to write the query or report to get this info for the
organization.

Can anyone help?

Right now I have tried a query for each piece of info, and I am not
sure how to get it all on one report.

I can post queries, table design - whatever is needed...HELP!!!!
thanks -
sara

Oct 28 '07 #1
2 1947
sara wrote:
I am helping a non-profit track their elder clients and care given to
the clients.

The organization would like a report that shows various info on ALL
clients, such as:
# in each town,
# and Percent Male, Female, Smoker,
# in age range
# that use wheelchair or walker.

I have the information on tblClients, and the "condition" (wheelchair
or walker) on a different table (tblIntakeConditions) with a
relationship table (trelIntakeConditions) that shows the clientkey and
the condition key (there can be multiple conditions per client).

I don't know how to write the query or report to get this info for the
organization.

Can anyone help?

Right now I have tried a query for each piece of info, and I am not
sure how to get it all on one report.

I can post queries, table design - whatever is needed...HELP!!!!
thanks -
sara
I can provide some advice.

# in each town,
Create a query. Drag Town in it two time. Create a Totals query (use
menu item Query if needed)

# and Percent Male, Female, Smoker,
Create a query. Drag a field down, make it a totals query, and set the
field to Count. This will give you an overall count for calcing
percentages.

Create a totals query. Drag Sex two times and Smoker. I might do
something like
MaleCnt : IIF(Sex = "M",1,0)
and Sum it. Do the same for Female and Smoker.

# in age range
'Don't know.

# that use wheelchair or walker.
Do the same as the one for Sex.

I have no idea what the key is in this group. Town? If so, you may
need to create a master query (totals) that groups on town. You'd also
add it to those other queries.

Then you open up the Town query and add the other queries you created.
You can then set the link lines between the queries. You may want to
make the links All records in Town and matching recs in the other table.

This is just general stuff because I don't know what the key component is.
Oct 29 '07 #2
On Oct 29, 3:08 am, Salad <o...@vinegar.comwrote:
sara wrote:
I am helping a non-profit track their elder clients and care given to
the clients.
The organization would like a report that shows various info on ALL
clients, such as:
# in each town,
# and Percent Male, Female, Smoker,
# in age range
# that use wheelchair or walker.
I have the information on tblClients, and the "condition" (wheelchair
or walker) on a different table (tblIntakeConditions) with a
relationship table (trelIntakeConditions) that shows the clientkey and
the condition key (there can be multiple conditions per client).
I don't know how to write the query or report to get this info for the
organization.
Can anyone help?
Right now I have tried a query for each piece of info, and I am not
sure how to get it all on one report.
I can post queries, table design - whatever is needed...HELP!!!!
thanks -
sara

I can provide some advice.

# in each town,
Create a query. Drag Town in it two time. Create a Totals query (use
menu item Query if needed)

# and Percent Male, Female, Smoker,
Create a query. Drag a field down, make it a totals query, and set the
field to Count. This will give you an overall count for calcing
percentages.

Create a totals query. Drag Sex two times and Smoker. I might do
something like
MaleCnt : IIF(Sex = "M",1,0)
and Sum it. Do the same for Female and Smoker.

# in age range
'Don't know.

# that use wheelchair or walker.
Do the same as the one for Sex.

I have no idea what the key is in this group. Town? If so, you may
need to create a master query (totals) that groups on town. You'd also
add it to those other queries.

Then you open up the Town query and add the other queries you created.
You can then set the link lines between the queries. You may want to
make the links All records in Town and matching recs in the other table.

This is just general stuff because I don't know what the key component is.- Hide quoted text -

- Show quoted text -
Thanks, Salad.

I'm working on this....So far I have about 1/2 done. Will post back
if I struggle more - but I *think* I'm getting there.

Sara

Oct 29 '07 #3

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

Similar topics

8
by: Donna Sabol | last post by:
First, I should start by saying I am creating a database to be used by some very impatient, non-computer literate people. It needs to be seameless in it's operation from their point of view. I...
4
by: Richard Hollenbeck | last post by:
The following query takes about one second to execute with less than 1,000 records, but the report that's based on it takes from 15-30 seconds to format and display. That's frustrating for both me...
15
by: Richard Hollenbeck | last post by:
I tried to ask this question before on the 14th of January but I never got a reply. I'm still struggling with the problem. I'll try to rephrase the question: I have a crosstab query with rows...
2
by: amith.srinivas | last post by:
Hi all, From a word macro in VBA, I am trying to create a report in access DB. The report is based on a query with a parameter. I am using Set rpt = Application.CreateReport rpt.RecordSource =...
5
by: Wired Hosting News | last post by:
I tried to be breif and give a scenario so as not to be overlooked because it was soooo long. Let me give you real world. I am a manufacturer of goods and produce 11 items that are distributed...
1
by: Rob Woodworth | last post by:
Hi, I'm having serious problems getting my report to work. I need to generate a timesheet report which will contain info for one employee between certain dates (one week's worth of dates). I...
4
by: Jimmy | last post by:
I have a form with a command button on it that is supposed to open up a report and use a query to populate it. DoCmd.OpenReport "rptMailingList", acViewPreview, "qryMailingListChristmas" ...
4
by: Simon | last post by:
Dear reader, The syntax for Docmd.OpenReport is: OpenReport(ReportName, View, FilterName, WhereCondition, WindowMode, OpenArgs) Example The following example prints Sales Report while...
4
by: lorirobn | last post by:
Hi, I have a report displaying items that are missing from a room. I created 2 queries, the first getting the items IN the room, and the second being an "unmatched" query that references the...
6
by: Phil Stanton | last post by:
I am running a query that calls a function used to format addresses depending on the width of a control on a report that shows that address. The same query is used as the RecordSource of lots of...
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
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...

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.