JoshuaAnthony
Registered User.
- Local time
- Today, 21:38
- Joined
- Dec 18, 2003
- Messages
- 68
Hi all,
I am now in the practise of placing all of my public functions where possible in a separate module but if you wanted, could you declare public functions within a particular form (I realise that the form would probably have to be open when calling the function)? It doesn't seem to work for me. I get an error message saying that the function I am calling is not declared anywhere... I would prefer not to place this particular function in a public module because then I don't get the benefit of using the "Me" keyword (for readability) for this rather large function!
So does anybody know if public declarations (variables too) work from within form modules, and if so how is it different to public declarations within a separate module?
Thanks,
Joshua
I am now in the practise of placing all of my public functions where possible in a separate module but if you wanted, could you declare public functions within a particular form (I realise that the form would probably have to be open when calling the function)? It doesn't seem to work for me. I get an error message saying that the function I am calling is not declared anywhere... I would prefer not to place this particular function in a public module because then I don't get the benefit of using the "Me" keyword (for readability) for this rather large function!
So does anybody know if public declarations (variables too) work from within form modules, and if so how is it different to public declarations within a separate module?

Thanks,
Joshua
Last edited: