Results 1 to 2 of 2
  1. #1
    phoebe is offline Novice
    Windows XP Access 97
    Join Date
    Aug 2010
    Posts
    2

    Query problem

    I have a table with 19 variables as follow,
    Each variable was rated with scale as indicated in bracket.

    1.) DEPRESSED MOOD (0-4)
    2.) FEELINGS OF GUILT (0-4)
    3.) SUICIDE (0-4)
    4.) INITIAL INSOMNIA (EARLY) (0-2)
    5.) INSOMNIA MIDDLE (0-2)
    6) TERMINAL INSOMNIA (LATE) (0-2)
    6a.) HYPERSOMNIA (0-2)
    7. WORK AND ACTIVITIES (0-4)
    8) RETARDATION (0-4)
    9) AGITATION (0-4)
    10) ANXIETY PSYCHIC (0-4)
    11.) ANXIETY SOMATIC (0-4)
    12) SOMATIC SYMPTOMS GASTROINTESTINAL (0-2)
    13) SOMATIC SYMPTOMS GENERAL (0-2)
    14) GENITAL SYMPTOMS (0-2)


    15) HYPOCHONDRIASIS (0-4)
    16) LOSS OF WEIGHT (0-3)
    16a.) WEIGHT GAIN (0 -3)
    17.) INSIGHT (0-2)

    I would like to add the total together for all the items but 6a and 16a will only be rated if qu’s 6 and 16 are rated 0.

    So there are total of 17 variables will be sum up and 2 of them (Q6a & 16a) were determined by sub question (Q6 & 16) if it equals 0.

    Can someone help me how to make this query?

    Thanks!
    Phoebe

  2. #2
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    Since 6 and 6a will not have number in both, just simply add all fields together and you got it.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. query problem i have a problem wi
    By maxx3 in forum Queries
    Replies: 0
    Last Post: 06-29-2009, 02:29 AM
  2. Problem with query
    By maxx3 in forum Queries
    Replies: 8
    Last Post: 06-08-2009, 11:58 AM
  3. query problem
    By bhushan98 in forum Queries
    Replies: 1
    Last Post: 06-03-2009, 01:49 PM
  4. query problem
    By maxx3 in forum Queries
    Replies: 35
    Last Post: 05-29-2009, 04:07 PM
  5. Problem in Query
    By Bruno Trindade in forum Queries
    Replies: 4
    Last Post: 03-28-2009, 04:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums