User1975938630 posted
I have multiple check boxes, each are associated with it's own text box, when the checkbox is unchecked, the textbox is not enabled and when it's checked, the text box becomes enabled so the user can enter data into it. But if I run the program with
one or more of the textboxes not enabled (the user didn't need to enter anything in that textbox) I get a "conversion from string "" to type decimal is not valid". I can't figure out how to get around this, I want the program to still run if one or more
of the textboxes aren't enabled
I tried using an If Then statement with textbox1.Text = String.Empty statement but I still received the error.
I'm using visual basic 2012 and I'm very new to this so i've pretty much exhausted my knowledge on what to try. I'd rather not have to remove the checkboxes and just use the textboxes. Any help or ideas would be greatly appreciated.