Access IF statement scoring

craigmase

New Member
Joined
Apr 23, 2015
Messages
28
I am building an audit tool where the answer to each question is either
Incorrect or Correct
or
Incorrect, Correct, Feedback
I want to add a score to each answer given (will be different per question due to weighting)
Ultimately it will give a score out of 100
I have this presently built into Excel easily, but Access not so much

The form is built, questions etc all in but just needs the coding etc
someone please help
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Tell us exactly how you have it working in Excel (formulas, etc), and we'll probably be able to help you.
 
Upvote 0
well the first question is
=IF($M$13="correct", 12, 0) This one has two options of "correct" or "incorrect"
=IF($M$14="incorrect",0,IF($M$14="Correct",6,IF($M$14="N/A",6,0))) this one has "NA" too which scores positively
=IF($M$20="Correct",6,IF($M$20="Incorrect",0,IF($M$20="Feedback",3,IF($M$20="N/A",6,0)))) this one has "feedback" too which scores but lower
 
Upvote 0
Access has an equivalent to the IF function, it is the Immediate IF function (IIF).
So, your first formula would look something like this:
Code:
=IIF([FieldName]="correct",12,0)
So as you can see, it is remarkably similar.
Likewise, you can nest them, just like you do in Excel.

Armed with that knowledge, see if you are able to get it to work for you.
 
Upvote 0

Forum statistics

Threads
1,221,810
Messages
6,162,108
Members
451,743
Latest member
matt3388

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top