I have a module that I am using.. to cut a long story short, I need to be able to reference the form that calls the module.
i.e.
I have a form (ME)
the form calls DoSomthing()
I want the DoSomthing() function to change the caption of a label
I figured the code in the module would go somthing like this.
private function DoSomthing()
Forms!Me!lblMyLabel.Caption = "Hello, world"
end function
---- But of course it didn't work. Can anyone tell me how to reference this correctly, cheers.
i.e.
I have a form (ME)
the form calls DoSomthing()
I want the DoSomthing() function to change the caption of a label
I figured the code in the module would go somthing like this.
private function DoSomthing()
Forms!Me!lblMyLabel.Caption = "Hello, world"
end function
---- But of course it didn't work. Can anyone tell me how to reference this correctly, cheers.