vb.net, textbox connected with database
-
Hi, I have several textboxes connected to an MS access database (not with code but wizards). I also have a tab control. The problem is: when I clear the textboxes with textbox1.text = "" or .clear method it clears it (or so it seems), but when I click on a different tab and back it reappears like it haven't been cleared I also tried clearing dataset, not working. I have tried almost everything, and nothing seems to fix this problem. Any suggestions?:confused: Thank You
-
Hi, I have several textboxes connected to an MS access database (not with code but wizards). I also have a tab control. The problem is: when I clear the textboxes with textbox1.text = "" or .clear method it clears it (or so it seems), but when I click on a different tab and back it reappears like it haven't been cleared I also tried clearing dataset, not working. I have tried almost everything, and nothing seems to fix this problem. Any suggestions?:confused: Thank You
So your textboxes are bound to a table. Are yo trying to add a new record ? is this why your clearing the textboxes? BTW if you clear text boxes ty not to use the "" use this ex. textbox1.text =vbnullstring vbnullstring is a faster and mre efficient way of clearing a TEXTbox or checking the contents of a text box post some code so we know what your trying to do... Help is great only if yu ask correctly
-
So your textboxes are bound to a table. Are yo trying to add a new record ? is this why your clearing the textboxes? BTW if you clear text boxes ty not to use the "" use this ex. textbox1.text =vbnullstring vbnullstring is a faster and mre efficient way of clearing a TEXTbox or checking the contents of a text box post some code so we know what your trying to do... Help is great only if yu ask correctly
thanks for an excellent method, works great, although the problem was in dataset. it was kind of weird, what happened was a database connection seemed to be in a stage between being fully opened and fully closed so dataset.clear was giving me an (connection not opened) error but textbox.clear woudln't clear the text (which was bound to the dataset)
-
So your textboxes are bound to a table. Are yo trying to add a new record ? is this why your clearing the textboxes? BTW if you clear text boxes ty not to use the "" use this ex. textbox1.text =vbnullstring vbnullstring is a faster and mre efficient way of clearing a TEXTbox or checking the contents of a text box post some code so we know what your trying to do... Help is great only if yu ask correctly
sorry.. forgot to sign in