troubleshooting Question

Passing a forms name to a function (without going into the module behind the form)

Avatar of Andy Brown
Andy BrownFlag for United Kingdom of Great Britain and Northern Ireland asked on
Microsoft Access
2 Comments1 Solution327 ViewsLast Modified:
Using the on-click event handler, I want to pass the current form name to a function using something like this:

=StoreForm([me].[form].[name])

This gives me the following error:

"The expression On Click you entered as the event property setting produced the following error: The object doesn't contain the Automation object 'me'"

I can easily do it if I go into the module behind - but for this purpose, I'd prefer not to do that.

Incidentally, the function that I'm trying to call starts as....

Public Function StoreForm(frmName As Form)
ASKER CERTIFIED SOLUTION
Anders Ebro (Microsoft MVP)
Microsoft Developer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros