Hello,
I'm tring to understand how Modules work, (as I under stand it so far, it's where you store procedures and Functions to be called by various forms)
What I have having troubles understanding is how to pass control to and from.. (let's say a function).
I want a button the check the Password field of a table. I have the code to check this all written up, but I want to be able to use this on multiple buttons.
So it would go something like this:
On click
.. v--- ??
strPassCheck = CheckPass(cmdButton)
if strPassCheck = True Then..
Load This form
Else ...
Return to Menu.
End if.
How would I start the CheckPass sub in the module?
Thanks
--Toby Kliem-- Novice Programmer;
Expert Hack
sapere aude: Dare to be wise
I'm tring to understand how Modules work, (as I under stand it so far, it's where you store procedures and Functions to be called by various forms)
What I have having troubles understanding is how to pass control to and from.. (let's say a function).
I want a button the check the Password field of a table. I have the code to check this all written up, but I want to be able to use this on multiple buttons.
So it would go something like this:
On click
.. v--- ??
strPassCheck = CheckPass(cmdButton)
if strPassCheck = True Then..
Load This form
Else ...
Return to Menu.
End if.
How would I start the CheckPass sub in the module?
Thanks
--Toby Kliem-- Novice Programmer;
Expert Hack
sapere aude: Dare to be wise