J
John G
in my application, i have multiple forms. i have some
function declared as public in my module. now i know that
i can't return a value from a function to any form unless
i create another function in the module that sets another
variable to that value (i.e. if the function is mv1 and i
call it on form1 then for form2 to recognize it i have to
create another function in the module that sets another
variable x=mv1 and then in form2 i refer to x). i've done
this but when i get an error saying "argument is not
optional". i don't know what this means or what i'm doing
wrong....
the first function is as follows:
public function mv1(tbl as string) as double
mv1=DAvg("[field8]", tbl, "[ID]"<60)
end function
then the next one is:
public function setmv1() as double
setmv1=mv1
end function
i get the error on "setmv1=mv1"
any suggestions. thanx in advance.
john
function declared as public in my module. now i know that
i can't return a value from a function to any form unless
i create another function in the module that sets another
variable to that value (i.e. if the function is mv1 and i
call it on form1 then for form2 to recognize it i have to
create another function in the module that sets another
variable x=mv1 and then in form2 i refer to x). i've done
this but when i get an error saying "argument is not
optional". i don't know what this means or what i'm doing
wrong....
the first function is as follows:
public function mv1(tbl as string) as double
mv1=DAvg("[field8]", tbl, "[ID]"<60)
end function
then the next one is:
public function setmv1() as double
setmv1=mv1
end function
i get the error on "setmv1=mv1"
any suggestions. thanx in advance.
john