Results 1 to 2 of 2
  1. #1
    rivasj is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2015
    Posts
    1

    Question How to sum up various choices with unique values? Expressions, iff?

    I'm not sure if this is possible...but I'll give it a go by asking the question in this topic forum.



    I would like to sum up choices made by a user. I'm not sure whether I should create a new table and a couple of fields (not including primary key) with Fruit & Fruit Value. Where: Apple (Y or N)=4 or 0, Oranges (Y/N)=3/0, Bananas (Y/N)=2/0, etc. As the user chooses the fruit, the value rises. For example, if the user selected Yes for APPLE and ORANGES the sum is 7-- or if the user selected ORANGES and BANANAS the sum is 5, etc.

    Is it possible?

    Many thanks,
    Joe

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    if user picks APPLE on the question , the result will be TRUE or FALSE.
    tTest
    [Q], [A]
    apple, true

    You will need a Points table that has the point values for each fruit.
    tFruit
    [Fruit], [val]
    apple, 4
    banana, 2

    then in a query, join the 2 tables on [fruit], and pull only TRUE values to sum.

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

Similar Threads

  1. Displaying only unique values
    By MCCDOM in forum Forms
    Replies: 8
    Last Post: 11-13-2014, 06:14 AM
  2. Sum of double values with unique ID
    By javeko in forum Access
    Replies: 1
    Last Post: 03-06-2014, 03:01 AM
  3. Replies: 11
    Last Post: 11-01-2013, 09:49 AM
  4. Unique values
    By helpaccess in forum Queries
    Replies: 3
    Last Post: 09-19-2011, 03:46 PM
  5. Creating a unique ID for a new set of values
    By slaterino in forum Programming
    Replies: 1
    Last Post: 08-24-2010, 09:35 AM

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