
Calling a Sub in Another Form vs a Module
Public works to make it public when placed in a module, not a form, I think
there is a way to do it, but I am not sure, anyways your program shouldn't
need mnuch updating if placed in a module versus a form, should it? You
just have to get used to it is all, it took me a while too.
--
Please e-mail a copy of the response to
Sometimes my news server does not function properly,
Thank You.
Quote:
>From Form1, I'm trying to call a Public SUB in Form2, but it fails
>with the diagnostic, "Compile error. Sub or Function not defined."
>If I relocate (cut & paste) the SUB to Module1, it works fine.
>The help says using 'Public' makes the Sub accessible to all other
>procedures throughout the program.
>Anybody know why it won't work in the second Form, but does of a BAS
>module?
>jim
>___
>Have a home repair question? Try my help page. It's sort of an
alt.home.repair FAQ.
Quote:
>http://www.ghgcorp.com/jevans/HomeRepair.htm