functions calls to module functions within a form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Okay, this is strange, and I'm just curious if it's something new to A2k2, or
just one of the many funky things I've never seen before.

I have a public function defined in a module that manipulates a textstring.
I have a form that when it opens calls that function. What happens is that
unless I use the syntax modname.functionname the code in the form doesn't
recognize the function.

Is this something new to later versions of Access, or did I inadvertently
click some option setting?

TIA

Mark
 
There is no change in ms-access in later versions in terms of what you
describe.

I would check to see if you defined the function as public.

Public Function blabal ba..

Further, if you have two different modules, but inside the each module you
have a function with the SAME name, then ms-access can't figure out which
one you want..hence you will need to "qualify" the function name by adding
the module name.

So, I suspect you have the function name two times....
 
MChrist said:
Okay, this is strange, and I'm just curious if it's something new to A2k2, or
just one of the many funky things I've never seen before.

I have a public function defined in a module that manipulates a textstring.
I have a form that when it opens calls that function. What happens is that
unless I use the syntax modname.functionname the code in the form doesn't
recognize the function.

Is this something new to later versions of Access, or did I inadvertently
click some option setting?


That usually means that you have more than one module (or
library) with the same function name.
 
Back
Top