Re: Managing two related unique IDs in data entry
Jamie,
Unfortunately this solution is not working here. Did you tests it? Did it work with you? The problem is that like this EpiData only accepts sample2 in blank, ie, missing data for this field. Also, when the warning comes up, the (@sample1, @sample2) does not show any data.
My guess is that EpiData is not creating the checksamp variable correctly or is being able to type sample1 comment correctly into sample2. Another good guess, might be that the error is above the chair in front of the keyboard. Thanks anyway for the ideia. I will try to make this warning work later and let you know.
,
before file define checksamp ### hide checksamp end
sample1 comment legal use recfile.rec type comment checksamp end
sample2 after entry if sample2 <> checksamp then help "This pair of sample numbers (@sample1, @sample2) do not match those assigned. \nPlease check and re-enter both." type=error goto sample1 endif end end
Jamie
Abraço forte e que a força esteja com você,
Dr. Pedro Emmanuel A. A. do Brasil Instituto de Pesquisa Clínica Evandro Chagas Fundação Oswaldo Cruz Rio de Janeiro - Brasil Av. Brasil 4365 Tel 55 21 3865-9648 email: pedro.brasil@ipec.fiocruz.br email: emmanuel.brasil@gmail.com
---Apoio aos softwares livres www.zotero.org - gerenciamento de referências bibliográficas. www.broffice.org ou www.libreoffice.org - textos, planilhas ou apresentações. www.epidata.dk - entrada de dados. www.r-project.org - análise de dados. www.ubuntu.com - sistema operacional
My apologies, Pedro,
A field block cannot refer to a variable defined in the .chk file.
The following works, but I could not get the @sample1 to work in a help command. I'm not sure why.
create a new field in the .rec called checksamp and the .chk looks like this:
before file hide checksamp end
sample1 comment legal codes.rec type comment checksamp end
sample2 after entry if sample2 <> checksamp then help "This pair of sample numbers do not match those assigned. \nPlease check and re-enter both." type=error goto sample1 endif end end
Jamie
Jamie,
Unfortunately this solution is not working here. Did you tests it? Did it work with you? The problem is that like this EpiData only accepts sample2 in blank, ie, missing data for this field. Also, when the warning comes up, the (@sample1, @sample2) does not show any data.
My guess is that EpiData is not creating the checksamp variable correctly or is being able to type sample1 comment correctly into sample2. Another good guess, might be that the error is above the chair in front of the keyboard. Thanks anyway for the ideia. I will try to make this warning work later and let you know.
,
before file define checksamp ### hide checksamp end
sample1 comment legal use recfile.rec type comment checksamp end
sample2 after entry if sample2 <> checksamp then help "This pair of sample numbers (@sample1, @sample2) do not match those assigned. \nPlease check and re-enter both." type=error goto sample1 endif end end
Jamie
Abraço forte e que a força esteja com você,
Dr. Pedro Emmanuel A. A. do Brasil Instituto de Pesquisa Clínica Evandro Chagas Fundação Oswaldo Cruz Rio de Janeiro - Brasil Av. Brasil 4365 Tel 55 21 3865-9648 email: pedro.brasil@ipec.fiocruz.br email: emmanuel.brasil@gmail.com
---Apoio aos softwares livres www.zotero.org - gerenciamento de referências bibliográficas. www.broffice.org ou www.libreoffice.org - textos, planilhas ou apresentações. www.epidata.dk - entrada de dados. www.r-project.org - análise de dados. www.ubuntu.com - sistema operacional _______________________________________________ EpiData-list mailing list EpiData-list@lists.umanitoba.ca http://lists.umanitoba.ca/mailman/listinfo/epidata-list
participants (1)
-
epidata-list@lists.umanitoba.ca