You should make a system using relate
On the example page http://www.epidata.dk/examples.php you will find several examples.
Some very complicated like the one YVES has made, but others are simple - but comprehensive, e.g. that included with the installation of EpiData you have the house,person,rec system.
regards
Jens Lauritsen
epidata-list@lists.umanitoba.ca