Get the value of a textbox control on a opened form

I am trying to read the value from a form that is opened. I can get the value if i call the subroutine from the form that has the control doing the following
Form = Drawpage.Forms.getByName(“MyForm”)
But i am trying to get the value when in another form. When I do the following:
Form = ThisDataBaseDocument.getformdocuments.getByName(“TheTextBox”)
I get a noSuchElementException error even if i run it from the form the text box is on

I made a typeo, the (“TheTextBox”) should read (“MyForm”)

Form = ThisDataBaseDocument.getformdocuments.getByName(“MyForm”)