F
Franklin
I'm new to the forum, so I apologize if I am posting this in the wrong section.
Here's my situation:
I have created a Call Monitoring Database, but I need help with the VB code
in order to obtain some figures. There are 22 questions on the form, each
with a combo box that contains the values: 0,1,2,3,4
I need a VB code that will run the following:
To Calculate the % Rating:
1. Count the number of items with any value other than 0
2. Multiply the count in step 1 by 4
3. Divide the total score by the number obtained in step 2
4. Convert the result in step 4 to a whole number percent
For example, let's say 20 of the 22 question are answered with a value other
than 0. For this example, let's say all 20 questions had a value of 3.
1. 20 (number of items with a value other than 0)
2. 20 (count from step 1) x 4 = 80
3. 3 (value) x 20 (# of questions with a value other than 0) = 60 (total
score)
60 / 80 (number obtained in step 2) = 0.75
4. 0.75 x 100 = 75%
I'm very new to this so any help would be greatly appreciated. Thank you in
advance!
--Frank
Here's my situation:
I have created a Call Monitoring Database, but I need help with the VB code
in order to obtain some figures. There are 22 questions on the form, each
with a combo box that contains the values: 0,1,2,3,4
I need a VB code that will run the following:
To Calculate the % Rating:
1. Count the number of items with any value other than 0
2. Multiply the count in step 1 by 4
3. Divide the total score by the number obtained in step 2
4. Convert the result in step 4 to a whole number percent
For example, let's say 20 of the 22 question are answered with a value other
than 0. For this example, let's say all 20 questions had a value of 3.
1. 20 (number of items with a value other than 0)
2. 20 (count from step 1) x 4 = 80
3. 3 (value) x 20 (# of questions with a value other than 0) = 60 (total
score)
60 / 80 (number obtained in step 2) = 0.75
4. 0.75 x 100 = 75%
I'm very new to this so any help would be greatly appreciated. Thank you in
advance!
--Frank