SonicBoomAu Posted December 12, 2004 Posted December 12, 2004 Is it possible to place a form procedure in a module. I have a procedure which is called from multiply forms and instead of putting it on every form would like to centralise the procedure and place the code ni a module. I have tried starting the procedure with "Public Function" and "Private Function" but to no avail. Any help is appreciated. Quote Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. -- Rick Cook, The Wizardry Compiled
Administrators PlausiblyDamp Posted December 13, 2004 Administrators Posted December 13, 2004 Not 100% sure what you mean by a 'form procedure' but you can put any sub or function in a module and call it from a form. It may help if you posted a bit of code.... Also you may want to look at using a class with a shared method rather than a module just to keep things a bit more OO Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
SonicBoomAu Posted December 13, 2004 Author Posted December 13, 2004 Thanks PlausiblyDamp, I found were I was going wrong. I was placing my procedures outside of the module area. I will have a look into creating a class. You don't happen to know of any websites of the top of your head? Quote Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. -- Rick Cook, The Wizardry Compiled
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.