I have a form called test that contains a subform called header.
The following is one correct way to reference the form name:
VB Code:
Forms!test!Header(FieldName) = CombinedDate
However, I want to reference the form via a variable or direct string as shown below. But neither of these code snippets do NOT work.
orVB Code:
Forms("test.header")(FieldName) = CombinedDate
Any ideas on how I might do it or am I missing something?VB Code:
dim theName str as string theName="test.header" Forms(theName)(FieldName) = CombinedDate




Reply With Quote