Hi there.
I have a form with different controls on it. it's essentially an electronic questionnaire.
There are cases where depending on how questions are answered, other controls on the page are hidden because they are no longer applicable. I have a lot of logic that looks something like:
if question1.value = 1 then
'hide question2
labelquestion2.visible=false
question2.visible = false
question2.value = NULL
else
'do the opposite of the above
end if
My question is, when i save a record where question2 (and possibly other questions) were hidden by the form, how do i get these controls to re-appear for the next record? I'm hoping that I don't have to write a function to set everything to visible again.
My thinking was that if by default, the controls' .visible property is set to true, it should use the default properties to "draw" the form for new records.
Hopefully, i haven't confused you by my poor wording.
Thanks.
I have a form with different controls on it. it's essentially an electronic questionnaire.
There are cases where depending on how questions are answered, other controls on the page are hidden because they are no longer applicable. I have a lot of logic that looks something like:
if question1.value = 1 then
'hide question2
labelquestion2.visible=false
question2.visible = false
question2.value = NULL
else
'do the opposite of the above
end if
My question is, when i save a record where question2 (and possibly other questions) were hidden by the form, how do i get these controls to re-appear for the next record? I'm hoping that I don't have to write a function to set everything to visible again.
My thinking was that if by default, the controls' .visible property is set to true, it should use the default properties to "draw" the form for new records.
Hopefully, i haven't confused you by my poor wording.
Thanks.