suepowell
06-10-2008, 08:06 AM
HI,
I have a problem calling a subprocedure.
I have a sub in the module of a form that I have declared as public.
Public Sub BOMForm_AfterUpdate()
lots of code
end sub
If I call it from within the same form module it's fine, but if I call it from another form, it give the error "Sub or Function not defined"
I have checked the obvious like spelling (I cut and pasted the sub name so there can be no typo's)
I am calling it using the syntax
Call BOMForm_AfterUpdate
Is this possible.
I don't want to put it in a separate module as there will be lots of rewriting and replacing "me" with long definitions including form names.
Thanks for your thoughts.
Sue
I have a problem calling a subprocedure.
I have a sub in the module of a form that I have declared as public.
Public Sub BOMForm_AfterUpdate()
lots of code
end sub
If I call it from within the same form module it's fine, but if I call it from another form, it give the error "Sub or Function not defined"
I have checked the obvious like spelling (I cut and pasted the sub name so there can be no typo's)
I am calling it using the syntax
Call BOMForm_AfterUpdate
Is this possible.
I don't want to put it in a separate module as there will be lots of rewriting and replacing "me" with long definitions including form names.
Thanks for your thoughts.
Sue