470,855 Members | 1,205 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,855 developers. It's quick & easy.

Quiz in VB - Multiple choice and single choice questions

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
1 23341
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.

Similar topics

5 posts views Thread by Alex Li | last post: by
2 posts views Thread by Sketcher | last post: by
4 posts views Thread by DAL | last post: by
16 posts views Thread by C++ Hell | last post: by
3 posts views Thread by Raqueeb Hassan | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.