Hi; Try the following: Edit controls for VAR1:
VAR1 if VAR1 = 1 then hide VAR10 ENDIF if VAR1 <> 1 then unhide VAR10 ENDIF END END
In this case, var10 will be greyed, and no entry will be possible as soon as var1 is put to 1; the second if is necessary in case you decide, once VAR1 has been put to 1 to come back to it, and to put another value. If 'unhide' is not specified, Var10 would stay unusable.
What you did could not work: VAR10 can't be hidden once you are on it.
Good luck! ______________________________________________ Gilles DELMAS Institut de Veille Sanitaire Dept. Maladies Infectieuses, Unité infections entériques, alimentaires et zoonoses 12 rue du Val d'Osne 94415 Saint-Maurice cedex - France + 33 1 41 79 67 27 g.delmas@invs.sante.fr ______________________________________________
-----Message d'origine----- De : epidata-list@lists.umanitoba.ca [mailto:epidata-list@lists.umanitoba.ca] Envoyé : mardi 6 septembre 2005 01:01 À : epidata-list@lists.umanitoba.ca Objet : [EpiData-list] NOENTER? SKIP? Ifthen?
Hi
I am a begginer in EpiData. I don't understand the syntax for doing the following task in the check file:
If var1 = 1 , then I need the field of var10 in the "data entry form" to be locked.
How do I do this?
I tried: var10 BEFORE ENTRY IF (var1=1) THEN HIDE var10 ENDIF END END
But it does not work
Thanks for your help
Kristian