Hi,
I created a form called "MAIN". In a textbox called "SECONDLC", a user needs to insert a word. The aim is that I can use his/her inserted word in my standard code (by using After Update event).
So in my code under "Microsoft Office Access Class Objects" under "Form_MAIN", I put the code:
Then, in my (standard) "Modules" I want to use the value "Secondlanguage", in a sub procedure called AddSecondLC:
However, when entering a word, it seems that the variable "Secondlanguage" is not having the value entered when using that variable in the standardcode.
Is there a special link between the variables in a "Form_module" or those in a "standard_module"? Or what am I doing wrong??
Thanks for any help!
I created a form called "MAIN". In a textbox called "SECONDLC", a user needs to insert a word. The aim is that I can use his/her inserted word in my standard code (by using After Update event).
So in my code under "Microsoft Office Access Class Objects" under "Form_MAIN", I put the code:
Code:
Public Secondlanguage As String
Code:
Public Sub SECONDLC_AfterUpdate()
Secondlanguage = SECONDLC.Value
AddSecondLC
End Sub
Then, in my (standard) "Modules" I want to use the value "Secondlanguage", in a sub procedure called AddSecondLC:
Code:
sub AddSecondLC
If Secondlanguage = "Dutch" Then ...
End sub
However, when entering a word, it seems that the variable "Secondlanguage" is not having the value entered when using that variable in the standardcode.
Is there a special link between the variables in a "Form_module" or those in a "standard_module"? Or what am I doing wrong??
Thanks for any help!