Visual Basic Online Course
Make sure all Text boxes are clear firstSay ......... you have 10 TextBoxes and 10 ComboBoxes on a form and you are taking their contents into a database tables, i guess you have to make sure that all the TextBoxes and the ComboBoxes are Not Empty ... SO you can do something like This ....
OR, You may use something Like this :-
I will try here to tell the VB project that (TxtBx) represents all the TextBoxes Controls on a form (Form1) and (Cbos) represents all the ComboBoxes on the same form .... so the senario may be :
Hey, Form1 .... Be aware that (TxtBx) represents all my textboxes on You, and (Cbos) represents all my ComboBoexes On you, so whenever you find one Empty Just Give me a MsgBox and (Exit) the sub . OK?
But If not , continue Updating my database tables .... are we clear, form1 ??
How could we just Code These Lines of Scenario .......
Here we go :
♥ Visual Basic 6.0 Lessons, Tricks, Tutorials and help links :