is it possible to pass variables from a textbox in visual basic?

i am trying to pass a variable from a textbox. eg this is what is contained in a textbox


Hallo " & !Name & ", your current balance is " & !amount & ". please pay this amount to avoid disconnection!!! Customer Service.


the variables contained in the text box are !name and !amount

the app should be able to tell me what is contained in the field amount and name.