I have code that needs to be used in multiple events. Please see link:
I am having trouble with a Compile Error when I try to run it. Here is what I did, I placed it in a Module saved the Module as My_enableDisabl e. Then created the Private sub using the code. I called it in each event AfterUpdate and OnCurrent.
When I do this an error comes up.
what the Error says:
Compile Error!
Expected variable or procedure not module.
I am not certain how to do this. Can you give me some advice and share some good links to go learn more on How to better understand using Modules?
Thank you!
I am having trouble with a Compile Error when I try to run it. Here is what I did, I placed it in a Module saved the Module as My_enableDisabl e. Then created the Private sub using the code. I called it in each event AfterUpdate and OnCurrent.
When I do this an error comes up.
what the Error says:
Compile Error!
Expected variable or procedure not module.
I am not certain how to do this. Can you give me some advice and share some good links to go learn more on How to better understand using Modules?
Thank you!
Comment