2
Answers

No given Value for one or more required parameters

james james

james james

7y
218
1
I have a database Oledb. With several textbox and comboboxs. One combobox I have added numbers to selecte from 1,2,3 the Winform works fine but if i change the options to A,B,C I get No value given for one or more required parameter.The oledb / Access file is set to Short text. 
Any idea why this happens?
 
Thanks
 
Answers (2)
0
ytram5

ytram5

NA 135 0 20y
There's a couple of ways you can do it. You can create a panel containing all the controls you want for the advanced mode, and set it to be not visible by default. Now the button you press can alter the visibility of that panel. If you place all of the controls in a Panel called panel1, add this line to your button click event: this.panel1.Visible = !this.panel1.Visible; Add anything else to modify the text of the button if you wish. Another way to do it might be to create two different forms, but have one be the advanced, and the other the basic. There might be a good way to do that using inheritance, but having never done that myself, I can't give you too much input on it.
0
bilnaad

bilnaad

NA 686 0 20y
Sorry I don't understand the question??? Could you explain some more?