Best way to calculate and display an expression in Access?

VBAExcellNoob

Board Regular
Joined
Feb 13, 2015
Messages
117
I have a form in Access that contains about 40 questions.

I would like to display a % score depending on the answers to the questions.

For example if you answered "No" to 4 questions it would return a result of 90% or something like that.

I was going to use a field in the Table and use the Calculated to field to type in my expression.

Is this the best way to do it or is there a better way?
 
Last edited:

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Probably many ways to do this. Not sure what you are going after. Do you want to create a report?
 
Upvote 0
I usually export the data to excel and create the report in there using a series of macros.

I was just hoping to display a quick score on the form so the users would know their result based on the questions they answered.
 
Upvote 0
You can use a DCOUNT() function to display calculated value on a form (two DCOUNT() functions if you want the count of questions to be dynamic).
 
Upvote 0
You can use a DCOUNT() function to display calculated value on a form (two DCOUNT() functions if you want the count of questions to be dynamic).

Im not too familiar with the DCOUNT function, I was going to use a solution like this but it is a bit tedius:

IIf([Case type correct]="No",-5,0)+IIf( [Case visibility correct]="No",5,0)+IIf( [Correct provider group]="No",5,0)+100

So any time a question is answered "No" it will detract from a total of 100.

The only problem with this is there is nearly 40 questions so typing it out like this is very tedious
 
Upvote 0
Is each question a separate column?
Your data probably needs to be normalized, but otherwise, yes, that's going to be the way.
 
Upvote 0
Yeah each question is a separate column unfortunately. Thanks for the help anyway, time to start typing!
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,268
Messages
6,171,099
Members
452,379
Latest member
IainTru

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