I simply can not wrap my head around this one.
I have 1 input box (textbox1) and many textboxes that show data from database, after value in textbox1 is entered data is shown and textbox1 is emptied so that another value could be entered and so on.
I also have second button for editing values in those other textboxes (that are enabled for that purpose) so when I decide to change those values and with that change them in database I need that value from textbox1 so that I could identify position of data in database.
I can not figure out how to store that value in Button1_click so that I can call it in a Button2_click. I know I can not set it out of the sub. I've tried to set another sub to store textbox1 value and to call in both buttons but that didn't work.