Page 1 of 1

moving from roster to repeat entry in subsequent form

Posted: February 7th, 2013, 1:05 am
by emily wilson
I have a household roster with hard checks in roster HL000. For the second form of the roster, I'd like to have each HH member individually entered into the fields.
Variable person = curocc(HL000) and I've been tinkering with if statements to try to say something like:

if person < totocc(HL000) then
skip to next HL_MONTH;
else skip to ED3(person);
endif;

but this goes in a circle through the second part of the HH roster, and I can't move to the rest of the questionnaire entries.

Re: moving from roster to repeat entry in subsequent form

Posted: February 12th, 2013, 4:54 pm
by Gregory Martin
Hey Emily,

Can you clarify exactly what you're trying to do. It's a bit hard for me to understand without seeing your code. Might the endgroup statement work for your purposes, something like:
PROC FIRST_FIELD_ON_SECOND_ROSTER

preproc

    
if curocc() > totocc(HL000) then
        
endgroup;
    
endif;

Re: moving from roster to repeat entry in subsequent form

Posted: February 12th, 2013, 7:46 pm
by Guest
It was the endgroup statement that I was struggling with. Thanks very much!