I am using then IIF command and want to reference a textbox value from a different form that is part of my project.
Ami2Mg.Text = CStr(IIf((CDbl(wtbox.Text) * CDbl(Ami2Dos.Text)) < CDbl(Ami2.TextBox1.Text), (CDbl(wtbox.Text) * CDbl(Ami2Dos.Text)), "150"))
Ami2.textbox1 is the textbox on the Ami2 Form.
I get a system.innerException with this format. Stating it referred to itself when building the form?
I am using this form to change values when needed - like a default storage. I know probably not the right way, but until I learn this is what I got...Thanks for the help.

New Topic/Question
Reply



MultiQuote




|