M
mike
Hi all,
how do I change a variable in the Module from a form?
For example:
In the module (name it module1)
Dim a as string //outside of all function
Public Function setvar(setstr as string)
a=setstr //error right here
end Function
Public Function getvar()
getvar= a
End Function
Then:
In a form, I click on a command button to set a=
something by using the function setvar(some string). But
it didn't work? Is there a better way to assign a value to
the variable a in the module??
mike
how do I change a variable in the Module from a form?
For example:
In the module (name it module1)
Dim a as string //outside of all function
Public Function setvar(setstr as string)
a=setstr //error right here
end Function
Public Function getvar()
getvar= a
End Function
Then:
In a form, I click on a command button to set a=
something by using the function setvar(some string). But
it didn't work? Is there a better way to assign a value to
the variable a in the module??
mike