473,378 Members | 1,496 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Creating a questionnaire, please help!

Hi there,

I am learning Visual Basic language through Visual Basic Express 2005, and am unfortunately having a tough time with it - it just doesn't seem to come intuitively to me.

I have to create a psychology questionnaire where the participant is displayed with 5 questions, and they have to select (using radio buttons) how strongly they agree on a scale of 1 to 7. Their score at the end corresponds to the amount their selection adds up to, so there is a maximum of 35 points, and an evalution box will be displayed corresponding with their score.

How do I assign a value to a radio button, and then get Visual Basic to add up the scores? It's probably really simple but I'm really stuck.

Thanks for your help :)
Jan 28 '08 #1
4 2769
kadghar
1,295 Expert 1GB
...
I have to create a psychology questionnaire where the participant is displayed with 5 questions, and they have to select (using radio buttons) how strongly they agree on a scale of 1 to 7. Their score at the end corresponds to the amount their selection adds up to, so there is a maximum of 35 points, and an evalution box will be displayed corresponding with their score.

How do I assign a value to a radio button, and then get Visual Basic to add up the scores? It's probably really simple but I'm really stuck.
...
Hi!
I think this thread might be of help.
Jan 28 '08 #2
Hi!
I think this thread might be of help.
Thank you, that definitely does help. Does anybody know how I can make it mandatory to select at least one radio button for every question?
Jan 29 '08 #3
kadghar
1,295 Expert 1GB
Thank you, that definitely does help. Does anybody know how I can make it mandatory to select at least one radio button for every question?
I think with an IF in then click event of your "Next Q" button:

Expand|Select|Wrap|Line Numbers
  1. if optionbox1.value or optionbox2.value or optionbox3.value then
  2.     'Code for going to next Q
  3. else
  4.     msgbox ("Please answer")
  5. end if
HTH
Jan 30 '08 #4
got it! thank you very much :)
Jan 30 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Steve Wylie | last post by:
Last year a kind soul by the name of Lasse Reichstein Nielsen answered a question for me on this newsgroup, including a script that solved my problem. I now need to script to be slightly amended to...
3
by: Jason A. Thompson | last post by:
Dear Access Gurus, I have a database which I hoped to use to administer questionnaires, or rather that someone who knows nothing about Access could use to administer them. Each q'aire item is on...
0
by: Christian Zotter | last post by:
Hello NG, I am a student at UDA in Austria, Austrian Partner of International Universities. To finnish my study i have to do a final year project. I have choosen the topic 'Evaluation of low...
6
by: Tex | last post by:
I am writting a survey system web application. I am using ASP.Net 2, C# and MS SQL 2005. I am able to store surveys and questions associated to the surveys just fine. The problem I am having is...
3
by: standon410 | last post by:
Hi, I'm trying to develop a questionnaire...basically a user can pick one of 5 questionnaires they want to use, and based on their choice, those questions will appear in their form. So the...
1
by: javedna | last post by:
Can PHP help with the following as I have tried in the MYSQL Forums and cant get any help Thanks Nabz ---------------------------------------- Hi I am developing a PHP MYSQL questionnaire...
7
by: javedna | last post by:
Hi guys Ive got a simple problem, im designing an online questionnaire and on submission the coding that I have used to validate whether a user has filled in all the questions is supposed to...
12
by: Gabriel | last post by:
Hi All, (First my apologies for this kind of "spam" message. But for my thesis this will be my once in a lifetime spam moment... ) At the moment I have to graduate for my master in Business...
10
by: fishlab | last post by:
Hello I'm using visual basic 2005 and i'm really useless and completely stuck. i'm making a questionnaire with a track bar from 1-7 to collect reponses. I have three forms. The first form...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.