R
Reppana
I have Variable varFormName (as String). I get the name partly from input
form and
add txt "pic" in front, so varFormName is EG picFP601Parts
Also I have ctlFormBox (as Control)
I have in a module For Each loop and when I try to run this:
For Each ctlFormBox in Forms!varFormName
Program says that it cannot find form "varFormName"!
When I put the real name (Forms!picFP601Parts) everything is OK
I want to run this code from module when these pic- forms open
What have I done wrong? I have tried many kinds of bracketts and also tried
to
study this in internet, but haven't found the answer
form and
add txt "pic" in front, so varFormName is EG picFP601Parts
Also I have ctlFormBox (as Control)
I have in a module For Each loop and when I try to run this:
For Each ctlFormBox in Forms!varFormName
Program says that it cannot find form "varFormName"!
When I put the real name (Forms!picFP601Parts) everything is OK
I want to run this code from module when these pic- forms open
What have I done wrong? I have tried many kinds of bracketts and also tried
to
study this in internet, but haven't found the answer