L
laavista
I wish to use a public variable in a form. I’ve read threads regarding this
and have tried everything I found with no luck
I have a public variable called intNumCredits. The variable is in a module
and is used in several procedures.
I have another module called “CreditsEntered†that contains the function
Public Function CreditsEntered() As Integer
CreditsEntered = intNumCredits
End Function
In my form, I used a text box. It’s called “text29†and its control source
is: =CreditsEntered()
I still get “#Name†error.
I checked the value of the public variable right before the form is brought
up and the value is there.
Thanks, in advance, for your help. I’m really stumped!
and have tried everything I found with no luck
I have a public variable called intNumCredits. The variable is in a module
and is used in several procedures.
I have another module called “CreditsEntered†that contains the function
Public Function CreditsEntered() As Integer
CreditsEntered = intNumCredits
End Function
In my form, I used a text box. It’s called “text29†and its control source
is: =CreditsEntered()
I still get “#Name†error.
I checked the value of the public variable right before the form is brought
up and the value is there.
Thanks, in advance, for your help. I’m really stumped!