Hi,
I seem to be unable to get the syntax right to reference a control on a subform from another form dynamically.
If I put this code directly on the pop-up form
I get the content of the control Actions on the subform.
However, I can't get it right when using Forms() or Controls()
I have tried
But I just get an error "Can't find field Forms!Contacts.subVisitsNotes.Form.Actions"
in the fist attempt...
vArgs(5) = "subVisitsNotes"
vArgs(3) = "Actions"
the second attempt....
vArgs(5) = "Forms!Contacts.subVisitsNotes.Form"
vArgs(3) = "Actions"
What am i doing wrong?
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Google Rank Extractor -> Perl beta with FusionCharts
I seem to be unable to get the syntax right to reference a control on a subform from another form dynamically.
If I put this code directly on the pop-up form
Code:
msgbox (Forms!Contacts.subVisitsNotes.Form.Actions)
I get the content of the control Actions on the subform.
However, I can't get it right when using Forms() or Controls()
I have tried
Code:
Forms(vArgs(5)).Controls(vArgs(3)).Refresh
AND
Controls(vArgs(5) & "." & vArgs(3)).Refresh
But I just get an error "Can't find field Forms!Contacts.subVisitsNotes.Form.Actions"
in the fist attempt...
vArgs(5) = "subVisitsNotes"
vArgs(3) = "Actions"
the second attempt....
vArgs(5) = "Forms!Contacts.subVisitsNotes.Form"
vArgs(3) = "Actions"
What am i doing wrong?
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Google Rank Extractor -> Perl beta with FusionCharts