Hi
Funny thing in Access 2010.
I've got a form open:
mystring = Forms(5).Caption 'This works, but
mystring = Forms("MyFormName").Caption 'This tells me it can't find my form, and
mystring = Forms!MyFormName.Caption 'also doesn't work
And yes, Form(5)'s name is MyFormName.
Why so?
Funny thing in Access 2010.
I've got a form open:
mystring = Forms(5).Caption 'This works, but
mystring = Forms("MyFormName").Caption 'This tells me it can't find my form, and
mystring = Forms!MyFormName.Caption 'also doesn't work
And yes, Form(5)'s name is MyFormName.
Why so?
Last edited: