Results 1 to 4 of 4
  1. #1
    mohitmadan is offline Novice
    Windows 7 32bit Access 2013 32bit
    Join Date
    Oct 2022
    Posts
    2

    Combo box iif conditions -role match sum

    Hi everyone , need some help on iif conditions , i have three combo boxes with 3 values like 1st combo has value proficient , expert and advanced. Other two combos also has the same values.
    Let's say if I assign numeric values to Proficient = 20 , Advanced = 30 and Expert as 50



    Now if a user selects 3 combo boxes with let's say 1st combo -->Proficient 2nd combo--> Advanced and 3rd combo--> Expert the result should be populated in a new textbox as "100" and also for other combinations as per user selection.. can anyone help

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,943
    Bring those values in into another column, and then just sum the selections with that column.
    Put them into a table, so you cnage change the values easliy without having to modify code.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  3. #3
    mohitmadan is offline Novice
    Windows 7 32bit Access 2013 32bit
    Join Date
    Oct 2022
    Posts
    2
    Could you please explain more how to do that

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Do you know how to set a combobox to have multiple columns? Is combobox RowSource a ValueList or a Table/Query?

    Say each combobox RowSource has the number values in second column, add the columns in a textbox by referencing those columns by index. Index begins with 0 so second column would be index 1.

    =cbxOne.Column(1) + cbxTwo.Column(1) + cbxThree.Column(1)
    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. Role Based Access to Edit
    By rch918 in forum Access
    Replies: 1
    Last Post: 12-28-2016, 03:50 PM
  2. Replies: 3
    Last Post: 02-09-2015, 09:06 PM
  3. Replies: 2
    Last Post: 08-16-2012, 10:02 PM
  4. User role problem
    By tsn.s in forum Programming
    Replies: 2
    Last Post: 02-10-2012, 03:30 AM
  5. Providing role based access
    By mrk68 in forum Security
    Replies: 3
    Last Post: 03-25-2009, 07:46 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