an easy way 2 refer to a module is to first save the module after creating it.
then from the control source property of a control in the form ,u locate the functions folder in the objects from the control source,just below the builtinfuctions,u will see the name of the new module,and the name(s) of the functions created in the module.
once u know the name of the function u can refer it by refering to the name of the function and passing any parameter needed into the function.
e:g
function sola(x,y)
dim x as integer,y as integer
sola=x+y
end function
when i save this function,it will appear below the bultinfunctions folder at the control source property of e:g a textbox in a form.
hope this helps.
|