Yes, the data will be saved, even if hidden - as long as each control is
bound to a database table field.
Your suggestion of controlling visibility will work, provided the answers
for each person are stored in the same record, but you'll need code to
handle the visibility from one question to the next.
However, I would expect each question and answer to occupy a single record
each, rather than multiple fields within the same record. What I mean is,
you should have two tables; one for questions and one for answers:
tblQuestions
QuestionID (Autonumber - Primary Key)
QuestionText (Text)
tblAnswers
AnswerID (AutoNumber - Primary Key)
QuestionID (Long Integer)
PersonID (Long Integer)
AnswerText (Text)
One-to-many relationship between tblQuestions.QuestionID -->
tblAnswers.QuestionID.
One-to-many relationship between tblPeople.PersonID -->
tblAnswers.PersonID. tblPersonID would contain the person's SSN.
The above schema would be the ideal, but it would mean that your suggestion
of simply controlling visibility on the same form wouldn't work, because
each answer would be saved to a different record. To use this schema, you
would need to use a continuous form or several forms.
Regards,
Graham R Seach
Microsoft Access MVP
Sydney, Australia
---------------------------