B
Brad Pears
I have the following code that references a "textbox" on a form. I want to
pass the value of this textbox to a stored procedure as a parameter. This
code is located on a different form obviously. I thought that I would be
able to reference the textbox simply by placing the name of the form it is
located on (class name) in front as follows...
param1 = frmSteelPlates.txtJobNo.Text
I am getting the following error when I debug the line to see what the value
of the text box actually is...
"Reference to a non-shared member requires an object reference"
What am I missing here?
Thanks, Brad
pass the value of this textbox to a stored procedure as a parameter. This
code is located on a different form obviously. I thought that I would be
able to reference the textbox simply by placing the name of the form it is
located on (class name) in front as follows...
param1 = frmSteelPlates.txtJobNo.Text
I am getting the following error when I debug the line to see what the value
of the text box actually is...
"Reference to a non-shared member requires an object reference"
What am I missing here?
Thanks, Brad