J
Jon Furman
I ran into a funny VBA issue in Access this weekend, took me a little while
to figure it out.and I'm still not sure as to the why's of the matter.
Here's what I ran into, I had a form with a public sub declared. In some VBA
code outside of the forms class module I called the method like this:
[Forms]![MyForm].[MyMethod]
And I got errors at runtime. Then I changed the method call to:
Forms("MyForm").MyMethod
and everything worked!
It was my understanding that the two syntaxes above are complelely
equivalent, but apparently they're not. So my question is, why not? Thanks
for reading.
Jon Furman
to figure it out.and I'm still not sure as to the why's of the matter.
Here's what I ran into, I had a form with a public sub declared. In some VBA
code outside of the forms class module I called the method like this:
[Forms]![MyForm].[MyMethod]
And I got errors at runtime. Then I changed the method call to:
Forms("MyForm").MyMethod
and everything worked!
It was my understanding that the two syntaxes above are complelely
equivalent, but apparently they're not. So my question is, why not? Thanks
for reading.
Jon Furman