A
alex
Reference Form Properties
Hello,
Using Access ’03…
I have some code in a global module that imports a form into the mdb.
Once the form is imported, I’d like to access its caption property. I
cannot, however, seem to figure out how to reference the form.
From the global module, I’ve tried:
Public Function myFunc()
Msgbox Forms!myForm.caption
End Function
I get an error, however, saying that Access cannot find the form. I
know that I can access the properties in the class module, but I need
the code to recognize the form from the global module.
Any help would be appreciated.
Thanks,
alex
Hello,
Using Access ’03…
I have some code in a global module that imports a form into the mdb.
Once the form is imported, I’d like to access its caption property. I
cannot, however, seem to figure out how to reference the form.
From the global module, I’ve tried:
Public Function myFunc()
Msgbox Forms!myForm.caption
End Function
I get an error, however, saying that Access cannot find the form. I
know that I can access the properties in the class module, but I need
the code to recognize the form from the global module.
Any help would be appreciated.
Thanks,
alex