Results 1 to 6 of 6
  1. #1
    sk88 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    183

    generating scores based on number of tick boxes

    I am wondering if it is possible to calculate scores automatically based on the number of tick boxes the users have selected? If yes, how do I go about doing this feature?

    Thanks

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    Are the 'tick boxes' you want to count the yes/no fields of a single record? If so, this will not be easy. How many yes/no fields?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    sk88 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    183
    Quote Originally Posted by June7 View Post
    Are the 'tick boxes' you want to count the yes/no fields of a single record? If so, this will not be easy. How many yes/no fields?
    you are right.. they are tick boxes.. I have like 5 or 6 tick boxes. I actually need to know if 2 or more tick boxes selected, it should give me an answer. :s Is it something possible?

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    Okay, not so bad after all, I think. Create a field in query with expression. Try something like: IIf(Abs([f1]+[f2]+[f3]+[f4]+[f5])>2,1,Null)
    Use your field names in place of f1, f2, etc. You can have the IIf return whatever values you want - I show 1 or Null will return.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    bcmarshall is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jul 2010
    Posts
    95
    Just had to pipe up here. Great solution with the Abs() function! Hadn't thought of that one but it's in my bag of tricks now. To the original poster, this should work wonderfully, and you can set whatever score you want as your value.

    Super slick!

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    Actually, IIf([f1]+[f2]+[f3]+[f4]+[f5])<-2,1,Null) probably would work just as well but thought OP would be more comfortable with the positive number criteria.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 9
    Last Post: 06-04-2014, 10:45 AM
  2. Replies: 1
    Last Post: 03-01-2012, 04:35 AM
  3. Splitting a number field across 4 text boxes
    By R_Badger in forum Reports
    Replies: 1
    Last Post: 02-06-2012, 06:12 AM
  4. Testing Scores
    By helpaccess in forum Queries
    Replies: 4
    Last Post: 08-22-2011, 09:08 AM
  5. Replies: 4
    Last Post: 07-27-2011, 12:42 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