how to make the individual questionnaire forms appear N time

Discussions about CSEntry
Post Reply
Bayomie
Posts: 3
Joined: February 20th, 2014, 2:54 am

how to make the individual questionnaire forms appear N time

Post by Bayomie »

i'm new to CSPro i need help on
How to make the individual questionnaire forms appear N times after the Household Questionnaire form where N = Eligible family members (determined in HH questionnaire)
???
p-air

Re: how to make the individual questionnaire forms appear N

Post by p-air »

Hello Bayomie,

You can use this piece of logic that seems to work.
This goes in the first question in the roster

Code: Select all

proc FIRST_QUESTION 
//the first question in the roster
preproc
if curocc() >= n then  // n is the total number of persons in the household 
    i = 0;
    do until i in 1:2
        i = accept ("Would you like to enter more people?", "NO", "YES");
    enddo;
    if i in 1 then
        endgroup;
    endif;
endif;
skip to next;
But it is better to put the code in the last question in the person record so that you don't have an extra line with no information.

Code: Select all

proc LAST_QUESTION 
postproc
if curocc() >= n then  // n is the total number of persons in the household 
    i = 0;
    do until i in 1:2
        i = accept ("Would you like to enter more people?", "NO", "YES");
    enddo;
    if i in 1 then
        endgroup;
    endif;
endif;
skip to next;
I hope that this answers your question.

Bon week-end.
Bayomie
Posts: 3
Joined: February 20th, 2014, 2:54 am

Re: how to make the individual questionnaire forms appear N

Post by Bayomie »

Thank you P-air
this is a useful peace of information for the roster, but my question is about multi level questionnaire
level one is the house hold questionnaire (there is a variable with N where n is the number of eligible family member for the individual questionnaire
- level two Individual questionnaire it repeats N times for each house hold
the relation between level one HH and level two Individual is One to many.
my problem is how to force level two (IND questionnaire ) to appear N times after each level one HH questionnaire

hope this explain my problem better
Attachments
Multi level structure
Multi level structure
CSpro.png (39.5 KiB) Viewed 4007 times
khurshid.arshad
Posts: 573
Joined: July 9th, 2012, 11:32 am
Location: Islamabad, Pakistan

Re: how to make the individual questionnaire forms appear N

Post by khurshid.arshad »

Dear Bayomie


Please see attached data entry program with two levels.

Regards.
a.
Attachments
Two Level Application.rar
This files is from CSPro example folder.
(79.66 KiB) Downloaded 320 times
LSS Wave II Raven.rar
Currently we are working on it.
(194.45 KiB) Downloaded 324 times
Bayomie
Posts: 3
Joined: February 20th, 2014, 2:54 am

Re: how to make the individual questionnaire forms appear N

Post by Bayomie »

Dear khurshid
thank you for your reply it is useful i'm testing to apply it to my questionnaire
thanks
Post Reply