survey count

  • Thread starter enrico via AccessMonster.com
  • Start date
E

enrico via AccessMonster.com

i created two tables(tblClient and tblResult). tblClient is for a particular
respondent and tblResult is consists of the answers(which the questions are
only posted on my form) and represented on my table as A1, A2, A3, and so on.
how do i create a survey out of this, like the count of clients who answered
"Agree" in data A1?
 
A

Allen Browne

Whereever you see repeating fields (such as A1, A2, A3, ...), it always mean
your table is not normalized. You need to create a related table to hold the
answers as many records, instead of as many fields in one table. You will
then be able to count the values for each answer.

For an example of how to set up a question'n'answer database like that, see
Duane Hookom's At Your Survey database:
http://www.rogersaccesslibrary.com/forum/forum_posts.asp?TID=3
 
E

enrico via AccessMonster.com

actually, i only represent my questions with A1, A2, etc. because it would be
tiring to code it in my INSERT statement. the fields will be answer. i've
already seen the sample and it's too advance and complicated for me. i only
want to create a simple date entry and retrieval
 
A

Allen Browne

Please understand that by using a flat-file table (what you call 'simplying'
the design), you are creating something that is very hard to query (as you
found.)
 
P

Piet Linden

i created two tables(tblClient and tblResult). tblClient is for a particular
respondent and tblResult is consists of the answers(which the questions are
only posted on my form) and represented on my table as A1, A2, A3, and soon.
how do i create a survey out of this, like the count of clients who answered
"Agree" in data A1?

why not just use Duane Hookum's At Your Survey?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top