G
Guest
I have used the following codes to create a new question in a form when the
"yes" checkbox option was chosen:
Dim YesAnswer As Boolean
YesAnswer = MsgBox ("my question", vbYesNo) = vbYes
Me.1stControlToSeeWhenYes.Visible = YesAnswer
Me.2ndControlToSeeWhenYes.Visible = YesAnswer
Me.1stControlToSeeWhenNo.Visible = Not YesAnswer
Me.2ndControlToSeeWhenNo.Visible = Not YesAnswer
and I found out that it that does not work; the afterupdate does not accept
it, it does not accept ".1st"
What I should I do to create a set of new question when the answer yes is
chosen?
When I also change the format al ittle bit like:
MeFirstControlToSeeWhenYes.Visible = YesAnswer
I get the error 424 and the message "object required"
"yes" checkbox option was chosen:
Dim YesAnswer As Boolean
YesAnswer = MsgBox ("my question", vbYesNo) = vbYes
Me.1stControlToSeeWhenYes.Visible = YesAnswer
Me.2ndControlToSeeWhenYes.Visible = YesAnswer
Me.1stControlToSeeWhenNo.Visible = Not YesAnswer
Me.2ndControlToSeeWhenNo.Visible = Not YesAnswer
and I found out that it that does not work; the afterupdate does not accept
it, it does not accept ".1st"
What I should I do to create a set of new question when the answer yes is
chosen?
When I also change the format al ittle bit like:
MeFirstControlToSeeWhenYes.Visible = YesAnswer
I get the error 424 and the message "object required"