Hello,
I have a survey questionnaire that I'm building in Access where each unique record corresponds to a household, designated by the primary key FILE. Most of the data to be entered in this database will be in one row, i.e. data about one selected individual in the household.
However, I want to collect a limited amount of information about every member of the household also, so I have a subform [Roster] in which data for each household member can be entered.
I have an integer field [hhnum] in the Parent form [Household] to indicate how many people live in the household -- after this is updated the user is taken to the subform, which I have set up so that only the number of records indicated in [hhnum] can be entered in the subform.
For some reason, however, I cannot get the subform to clear its data when I begin a new parent record. I have related the Household and Roster tables using FILE (my unique ID), and I have tried the following command both OnOpen and OnCurrent:
Forms![Household]![Roster].Form.Requery
But the data still won't clear with a new parent record. This is beginning to drive me insane, and I would appreciate any assistance!
I have a survey questionnaire that I'm building in Access where each unique record corresponds to a household, designated by the primary key FILE. Most of the data to be entered in this database will be in one row, i.e. data about one selected individual in the household.
However, I want to collect a limited amount of information about every member of the household also, so I have a subform [Roster] in which data for each household member can be entered.
I have an integer field [hhnum] in the Parent form [Household] to indicate how many people live in the household -- after this is updated the user is taken to the subform, which I have set up so that only the number of records indicated in [hhnum] can be entered in the subform.
For some reason, however, I cannot get the subform to clear its data when I begin a new parent record. I have related the Household and Roster tables using FILE (my unique ID), and I have tried the following command both OnOpen and OnCurrent:
Forms![Household]![Roster].Form.Requery
But the data still won't clear with a new parent record. This is beginning to drive me insane, and I would appreciate any assistance!