databasedonr
Registered User.
- Local time
- Today, 16:00
- Joined
- Feb 13, 2003
- Messages
- 163
Can I write a procedure in a Class module that I can call from any form? What I am trying to do is create a button that I can set as active based on the state of a field. But I want to use this on all my forms!
What I am trying to do is:
If flag = True
Then set btnSave.Visible = True
Else set btnSave.Visible = False
I assume I can do this on one form, and I can write the code that if my recordset includes updated records, set the flag to true. But, can I set this as a Class module and call it from multiple forms? And if so, how do I call it from the form?
What I am trying to do is:
If flag = True
Then set btnSave.Visible = True
Else set btnSave.Visible = False
I assume I can do this on one form, and I can write the code that if my recordset includes updated records, set the flag to true. But, can I set this as a Class module and call it from multiple forms? And if so, how do I call it from the form?