J
Jeff
How do I write a reference to names of subforms.
I have 5 subforms that I want to reference using a do loop
This is what I have tried
Example:
Grid1 thru Grid5 are subforms
Dim varGridNumber As Variant
Dim counter as Variant
counter = 1
do
VarGridNumber = "grid" & counter
Me.varGridNumber.SourceObject = varGridNumber
counter = counter +1
do until counter = 5
The error is "Method or data member not found"
What is the problem?
I have 5 subforms that I want to reference using a do loop
This is what I have tried
Example:
Grid1 thru Grid5 are subforms
Dim varGridNumber As Variant
Dim counter as Variant
counter = 1
do
VarGridNumber = "grid" & counter
Me.varGridNumber.SourceObject = varGridNumber
counter = counter +1
do until counter = 5
The error is "Method or data member not found"
What is the problem?