Sep 02 2018 04:03 AM - edited Sep 02 2018 04:15 AM
Hello sir,
I have a small problem set here attached the project and code.
I am taking answers in the form of YES, NO and NA in the combo drop down. Based on these selections, I am storing values(YES=1, NO=0, NA="NA") in the labels against it. On click over the command button, i want the sum to display in the label option against it. Because the NA data type is different it is not doing the sum. I would appreciate if you provide us the sum work around sum/count the yes events.
Thanks
Abhinav
Sep 02 2018 12:05 PM
Please anyone help.
Sep 02 2018 06:45 PM - edited Sep 02 2018 06:46 PM
Solution
You will need to do two things, (1) Catch the errors so that the NA doesn't kill your code, (2) convert the captions in your labels to integer.
Give this code a try in your CommandButton1:
I have added your file with the working code for you to try.
Hope that makes sense and helps!
Cheers
Damien
Sep 03 2018 03:18 AM
Sep 04 2018 06:54 PM
Hi Abhinav
Can you give me an example please?
Cheers
Damien
Sep 05 2018 03:35 AM
Sep 12 2018 07:15 AM
Sep 12 2018 06:27 PM
Sorry I didn't get back to you in time. Have been flat out with running training for go-live of our new financial system next week at work!
Glad you have resolved the question my friend. The fun part of programming is playing around and trying different things to see what works and what doesn't.
Keep up the good work and see you out there!
Cheers
Damien
Sep 02 2018 06:45 PM - edited Sep 02 2018 06:46 PM
Solution
You will need to do two things, (1) Catch the errors so that the NA doesn't kill your code, (2) convert the captions in your labels to integer.
Give this code a try in your CommandButton1:
I have added your file with the working code for you to try.
Hope that makes sense and helps!
Cheers
Damien