B
brm6546545
if i have to strings
Dim subFormName as string
Dim formName as string.
'this works
Forms(formName).txtOnMainForm = "hello"
'these do not
Forms(formName).Forms(subFormName).txtOnSubForm = "hello"
Forms(formName).SubForm(subFormName).txtOnSubForm = "hello"
Forms(formName & "!" & subFormName).txtOnSubForm = "hello"
Any way to reference a subform if its name is in a string?
Dim subFormName as string
Dim formName as string.
'this works
Forms(formName).txtOnMainForm = "hello"
'these do not
Forms(formName).Forms(subFormName).txtOnSubForm = "hello"
Forms(formName).SubForm(subFormName).txtOnSubForm = "hello"
Forms(formName & "!" & subFormName).txtOnSubForm = "hello"
Any way to reference a subform if its name is in a string?