I have a Macro that I am using on several Forms. It does the same thing, but the form name is different. What command do I replace the Form Name with to have it reflect the current active form?
Like most Access developers, I stay away from Macros. I'm not at an Access loaded machine right now, so I can't check this, but I wonder if something like this might work. Declare a Public Variable, say strCurrentForm. In the Form_Load sub for each form enter the line:
strCurrentForm = "YourCurrentFormName"
Substitute the actual name for the YourCurrentFormName.
Then in your macro under the Action Arguements where it asks for the form name, enter strCurrentForm.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.