By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,045 Members | 2,120 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,045 IT Pros & Developers. It's quick & easy.

Quiz in VB - Multiple choice and single choice questions

P: n/a
Can anyone please give me some clues on how to track the right answers
in multiple-choice type questions (using checkbox) and single-choice
questions (rdio buttons) and also how to store the right answer value
in the db?

Much appreciated
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
ka******@hotmail.com (Mohammed Mazid) wrote in message news:<7c**************************@posting.google. com>...
Can anyone please give me some clues on how to track the right answers
in multiple-choice type questions (using checkbox) and single-choice
questions (rdio buttons) and also how to store the right answer value
in the db?

Much appreciated


Hi Mohammed,
I have a system that does exactly what you are talking about. The
way I handle it is using a list box and changing the style to Checkbox
as needed on the fly. However, I do not use radio buttons if the
response is a single response answer, but just read in the left side
of the value of the selected response. So my list looks something like
the following:

1) Always
2) Sometimes
3) Rarely
4) Never

I then read in the value left of the right paren using a combination
of the Left() and Instr() functions. I then store the value in my
database. Hope this helps.

David
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.