G
g.vanswaaij
Hi everyone,
I am currently working on a database in which the results of an
extensive questionnaire will be stored. To facilitate adding or
removing questions later on, the form that has to be filled in is
dynamically generated.
Unfortunately, I'm quite new to VBA, and I can't find out how to add a
control to the Forms!FormName!Controls collection. According to the MS
VBA Reference, this collection has no Add function, so how else do I
have to do it? Adding them in the form design view, then setting their
visibility to false, and then letting the script switch the visibility
of the needed controls to true is not really an option, since there is
no way to tell in advance how many questions and possible answers will
appear on one page of the form.
Thanks in advance!
I am currently working on a database in which the results of an
extensive questionnaire will be stored. To facilitate adding or
removing questions later on, the form that has to be filled in is
dynamically generated.
Unfortunately, I'm quite new to VBA, and I can't find out how to add a
control to the Forms!FormName!Controls collection. According to the MS
VBA Reference, this collection has no Add function, so how else do I
have to do it? Adding them in the form design view, then setting their
visibility to false, and then letting the script switch the visibility
of the needed controls to true is not really an option, since there is
no way to tell in advance how many questions and possible answers will
appear on one page of the form.
Thanks in advance!