
Signature
hth
Al Camp
Candia Computer Consulting - Candia NH
http://home.comcast.net/~cccsolutions
There are 10 types of people in the world.
Those who understand binary, and those who don't.
Hello Al Camp:
Thanks so much for your advice, sorry to have truncated the thread.
Two questions, if you don't mind:
1. Still grappling with the thought of breaking up a field into two (or
more). Would you store it as numeric or text? For example, "1" for Dry and
"O" otherwise?
2. When is it appropriate to store data that way? If a field has 70 possible
options (like District of origin), would it make sense to keep it as one
field? I guess what I'm asking is, what is the utility of storing
information seperately? Can I still generate calculations with a single text
field?
3. WIth what expression could I add a field in this query to be able to
count the number of records with either "Death" or "Other Complication"
(stored in seperate fields, named as such). Some records may have both, but
I just need to know how many have either.
Thanks so much for your help, and for being patient with me!
Alice
> Ice,
> First, a minor point... It's best to leave my comments in the thread of the discussion,
[quoted text clipped - 30 lines]
> >>Ice,
> >>IBreak the Successful at Discharge values into two new fields called > >>Isomething Dry and
Cured.
> >>IIn the query behind your pivot table, create two calculated columns. (remove the
> >>ISuccessful at Discharge field)
> >>IDry : IIF([Successful at Discharge] = "Dry", 1, 0)
> >>ICured : IIF([Successful at Discharge] = "Cured", 1, 0)
> >>INow use those two fields in your report.
> > >>IQ1 #Dry #Cured #death #other. #total complications #total clients
> >>Ihth
> >>IAl Camp
> >>ICandia Computer Consulting - Candia NH
> >>Ihttp://home.comcast.net/~cccsolutions
> >>IThere are 10 types of people in the world.
> >>IThose who understand binary, and those who don't.
> Hello All:
>> >>
[quoted text clipped - 27 lines]
>
>> >> Alice
Al Camp - 31 Jul 2006 15:07 GMT
Ice,
Those questions are all dependent on the functionality of you application.
In order to answer those questions, I would really have to know all your data needs
(table design/s, data types, example values, possible future values, etc...), and also
have a good understanding of what output you'll need (forms, reports, queries, etc...) In
other words, your table design is entirely dependent on understanding the entire
application's functionality.
How tables are designed, and how those fields are designed is not a "one size fits all"
situation.
Your original question was... in a query "How do I count Dry and Cured entries within
the one field?", then my calculated fields in the query would be the way to go...
Q Dry Cured
Q1 16 21
Q2 11 6
Be aware that pivot tables and crosstab queies are not designed to total multiple
disparate field values. It's usually X against Y with results Z (Quarter vs Success with
Totals)
You're best bet to yield...
>>IQ1 #Dry #Cured #death #other. #total complications #total clients
as a one line display would be to use Pass Thru queries for those disparate fields, and
then combine them into one query (linked via Quarter)

Signature
hth
Al Camp
Candia Computer Consulting - Candia NH
http://home.comcast.net/~cccsolutions
There are 10 types of people in the world.
Those who understand binary, and those who don't.
> Hello Al Camp:
>
[quoted text clipped - 109 lines]
>>
>>> >> Alice