473,387 Members | 1,790 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,387 software developers and data experts.

Questionnaire in MS Access

So, I need to figure out how to do what I want to do with Access. I
have many questions with mutually exclusive options, each option has a
value, never=0, few times=1...ect.. (then when questions are
"reversed", never will equal 4, which can be handled later but I'm open
to any ideas) but need to be displayed as text. The easiest solution to
this, I thought, would be option groups, perfect, they look beautiful,
it seems quite logical that they can simply be connected to a table.

Data in table associated with one form, which participant enters needs
to look like this.

subjectnumber Q1 Q2 Q3 Q4 .....
120001 4 2 0 3 .....
120002 3 0 1 2 .....
....
....

The question then is how do I connect the option groups to a table. I
want the numbers that show up in the datasheet view saved in an access
table. However if I connect the table via record source, the questions
disappear in form view. I would like to know if there is any way to
connect the two? Would it be a query of some sort, select bla from
datasheet bla and put it in table bla? (Sorry, I'm not up on the lingo)
Or does option group not transfer into a table, becuase you can't do it
when you go the other way (from table to form).

If the answer is no, there is no way, then...
Do the questions have to be list boxes or combo boxes?... where the
options are looked up in a table and then you have the text in a table
but then how does that get converted into numbers before exporting into
Excel or SPSS?

So then the data in the table would look like:

subjectnumber Q1 Q2 Q3 Q4 .....
120001 very often sometimes never often .....
120002 often never few times sometimes .....
....
....

How would I convert to

subjectnumber Q1 Q2 Q3 Q4 .....
120001 4 2 0 3 .....
120002 3 0 1 2 .....
....
....

Any thoughts or information would be greatly appreciated.

This may be a simple question for any Access expert but I am not one of
those. All of the help and examples have to do with business solutions,
most of which are fairly straightforward and very little on option
groups.

Nov 13 '05 #1
3 6077
Sorry, but I think you're going about it wrong. The questions shouldn't be
separate fields in the same row: rather, each question should be a separate
row, so that rather than

subjectnumber Q1 Q2 Q3 Q4 .....
120001 4 2 0 3 .....
120002 3 0 1 2 .....

you'd have

subjectnumber Question Answer
120001 1 4
120001 2 2
120001 3 0
120001 4 3
120002 1 3
120002 2 0
120002 3 1
120002 4 2

(you can use a cross-tab query to present the data in the original format)

To see a well designed example, take a look at Duane Hookom's "At Your
Survey"
http://www.rogersaccesslibrary.com/Otherdownload.asp?SampleName='At%20Your%20Survey%2 097'
http://www.rogersaccesslibrary.com/Otherdownload.asp?SampleName='At%20Your%20Survey%2 02000'

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

<kr*****@mcmaster.ca> wrote in message
news:11**********************@l41g2000cwc.googlegr oups.com...
So, I need to figure out how to do what I want to do with Access. I
have many questions with mutually exclusive options, each option has a
value, never=0, few times=1...ect.. (then when questions are
"reversed", never will equal 4, which can be handled later but I'm open
to any ideas) but need to be displayed as text. The easiest solution to
this, I thought, would be option groups, perfect, they look beautiful,
it seems quite logical that they can simply be connected to a table.

Data in table associated with one form, which participant enters needs
to look like this.

subjectnumber Q1 Q2 Q3 Q4 .....
120001 4 2 0 3 .....
120002 3 0 1 2 .....
...
...

The question then is how do I connect the option groups to a table. I
want the numbers that show up in the datasheet view saved in an access
table. However if I connect the table via record source, the questions
disappear in form view. I would like to know if there is any way to
connect the two? Would it be a query of some sort, select bla from
datasheet bla and put it in table bla? (Sorry, I'm not up on the lingo)
Or does option group not transfer into a table, becuase you can't do it
when you go the other way (from table to form).

If the answer is no, there is no way, then...
Do the questions have to be list boxes or combo boxes?... where the
options are looked up in a table and then you have the text in a table
but then how does that get converted into numbers before exporting into
Excel or SPSS?

So then the data in the table would look like:

subjectnumber Q1 Q2 Q3 Q4 .....
120001 very often sometimes never often .....
120002 often never few times sometimes .....
...
...

How would I convert to

subjectnumber Q1 Q2 Q3 Q4 .....
120001 4 2 0 3 .....
120002 3 0 1 2 .....
...
...

Any thoughts or information would be greatly appreciated.

This may be a simple question for any Access expert but I am not one of
those. All of the help and examples have to do with business solutions,
most of which are fairly straightforward and very little on option
groups.

Nov 13 '05 #2
Actually, in order to analyze the data the way we do, I need it in
this format. Are you saying it would be better database design (more
compact or something?) to present the data your way and then transpose
it to my way at the end? I have hundreds of questions and multiple
forms so the question is relevant.
All I had to do was select both the number and the word (but only
showing the word in the form of course) and specify the associated
field in the table as a number and it all works beautifully with combo
boxes or list boxes. The option group will not transfer the numbers to
a table, I have no idea why but it doesn't matter, I did the questions
over in combo boxes and they look better and take up less space.

Thank you for the links I will investigate them further shortly.

Douglas J. Steele wrote:
Sorry, but I think you're going about it wrong. The questions shouldn't be separate fields in the same row: rather, each question should be a separate row, so that rather than

subjectnumber Q1 Q2 Q3 Q4 .....
120001 4 2 0 3 .....
120002 3 0 1 2 .....

you'd have

subjectnumber Question Answer
120001 1 4
120001 2 2
120001 3 0
120001 4 3
120002 1 3
120002 2 0
120002 3 1
120002 4 2

(you can use a cross-tab query to present the data in the original format)
To see a well designed example, take a look at Duane Hookom's "At Your Survey"
http://www.rogersaccesslibrary.com/Otherdownload.asp?SampleName='At%20Your%20Survey%2 097' http://www.rogersaccesslibrary.com/Otherdownload.asp?SampleName='At%20Your%20Survey%2 02000'
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

<kr*****@mcmaster.ca> wrote in message
news:11**********************@l41g2000cwc.googlegr oups.com...
So, I need to figure out how to do what I want to do with Access. I
have many questions with mutually exclusive options, each option has a value, never=0, few times=1...ect.. (then when questions are
"reversed", never will equal 4, which can be handled later but I'm open to any ideas) but need to be displayed as text. The easiest solution to this, I thought, would be option groups, perfect, they look beautiful, it seems quite logical that they can simply be connected to a table.
Data in table associated with one form, which participant enters needs to look like this.

subjectnumber Q1 Q2 Q3 Q4 .....
120001 4 2 0 3 .....
120002 3 0 1 2 .....
...
...

The question then is how do I connect the option groups to a table. I want the numbers that show up in the datasheet view saved in an access table. However if I connect the table via record source, the questions disappear in form view. I would like to know if there is any way to
connect the two? Would it be a query of some sort, select bla from
datasheet bla and put it in table bla? (Sorry, I'm not up on the lingo) Or does option group not transfer into a table, becuase you can't do it when you go the other way (from table to form).

If the answer is no, there is no way, then...
Do the questions have to be list boxes or combo boxes?... where the
options are looked up in a table and then you have the text in a table but then how does that get converted into numbers before exporting into Excel or SPSS?

So then the data in the table would look like:

subjectnumber Q1 Q2 Q3 Q4 .....
120001 very often sometimes never often .....
120002 often never few times sometimes .....
...
...

How would I convert to

subjectnumber Q1 Q2 Q3 Q4 .....
120001 4 2 0 3 .....
120002 3 0 1 2 .....
...
...

Any thoughts or information would be greatly appreciated.

This may be a simple question for any Access expert but I am not one of those. All of the help and examples have to do with business solutions, most of which are fairly straightforward and very little on option
groups.


Nov 13 '05 #3
In my opinion, it's definitely better to normalize the data as I suggested.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

<kr*****@mcmaster.ca> wrote in message
news:11*********************@l41g2000cwc.googlegro ups.com...
Actually, in order to analyze the data the way we do, I need it in
this format. Are you saying it would be better database design (more
compact or something?) to present the data your way and then transpose
it to my way at the end? I have hundreds of questions and multiple
forms so the question is relevant.
All I had to do was select both the number and the word (but only
showing the word in the form of course) and specify the associated
field in the table as a number and it all works beautifully with combo
boxes or list boxes. The option group will not transfer the numbers to
a table, I have no idea why but it doesn't matter, I did the questions
over in combo boxes and they look better and take up less space.

Thank you for the links I will investigate them further shortly.

Douglas J. Steele wrote:
Sorry, but I think you're going about it wrong. The questions

shouldn't be
separate fields in the same row: rather, each question should be a

separate
row, so that rather than

subjectnumber Q1 Q2 Q3 Q4 .....
120001 4 2 0 3 .....
120002 3 0 1 2 .....

you'd have

subjectnumber Question Answer
120001 1 4
120001 2 2
120001 3 0
120001 4 3
120002 1 3
120002 2 0
120002 3 1
120002 4 2

(you can use a cross-tab query to present the data in the original

format)

To see a well designed example, take a look at Duane Hookom's "At

Your
Survey"

http://www.rogersaccesslibrary.com/Otherdownload.asp?SampleName='At%20Your%20Survey%2 097'

http://www.rogersaccesslibrary.com/Otherdownload.asp?SampleName='At%20Your%20Survey%2 02000'

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

<kr*****@mcmaster.ca> wrote in message
news:11**********************@l41g2000cwc.googlegr oups.com...
> So, I need to figure out how to do what I want to do with Access. I
> have many questions with mutually exclusive options, each option has a > value, never=0, few times=1...ect.. (then when questions are
> "reversed", never will equal 4, which can be handled later but I'm open > to any ideas) but need to be displayed as text. The easiest solution to > this, I thought, would be option groups, perfect, they look beautiful, > it seems quite logical that they can simply be connected to a table. >
> Data in table associated with one form, which participant enters needs > to look like this.
>
> subjectnumber Q1 Q2 Q3 Q4 .....
> 120001 4 2 0 3 .....
> 120002 3 0 1 2 .....
> ...
> ...
>
> The question then is how do I connect the option groups to a table. I > want the numbers that show up in the datasheet view saved in an access > table. However if I connect the table via record source, the questions > disappear in form view. I would like to know if there is any way to
> connect the two? Would it be a query of some sort, select bla from
> datasheet bla and put it in table bla? (Sorry, I'm not up on the lingo) > Or does option group not transfer into a table, becuase you can't do it > when you go the other way (from table to form).
>
> If the answer is no, there is no way, then...
> Do the questions have to be list boxes or combo boxes?... where the
> options are looked up in a table and then you have the text in a table > but then how does that get converted into numbers before exporting into > Excel or SPSS?
>
> So then the data in the table would look like:
>
> subjectnumber Q1 Q2 Q3 Q4 .....
> 120001 very often sometimes never often .....
> 120002 often never few times sometimes .....
> ...
> ...
>
> How would I convert to
>
> subjectnumber Q1 Q2 Q3 Q4 .....
> 120001 4 2 0 3 .....
> 120002 3 0 1 2 .....
> ...
> ...
>
> Any thoughts or information would be greatly appreciated.
>
> This may be a simple question for any Access expert but I am not one of > those. All of the help and examples have to do with business solutions, > most of which are fairly straightforward and very little on option
> groups.
>

Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

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...
3
by: Tom_F | last post by:
To comp.databases.ms-access -- I have a questionnaire for which I would like to design a MIcrosoft Access form. I understand that the proper Access table structure would be: Respondent_ID ...
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...
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...
2
by: Vili | last post by:
Hi all I am having problems with creating an functional questionnaire with asp.net 2.0 and MSSQL 2005 database. I have a table with field id (key & auto int), clientId (int), QuestionId...
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...
20
by: gremlin | last post by:
http://www.cilk.com/multicore-blog/bid/6703/C-Inventor-Bjarne-Stroustrup-answers-the-Multicore-Proust-Questionnaire
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.