Avatar of Andy Brown
Andy Brown
Flag for United Kingdom of Great Britain and Northern Ireland

asked on 

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

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)
Microsoft Access

Avatar of undefined
Last Comment
Andy Brown

8/22/2022 - Mon