By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,034 Members | 971 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,034 IT Pros & Developers. It's quick & easy.

Validating input on a screen?

P: n/a
Hey Group,

If I have for Example 3 Testboxs (txtb1, txtb2, txtb3) on my Form and 2
ComboBox`s (cbob1, cbob2) - All these are bound to a dataset, which new
feilds can be added to or modifyed from.

How can i get it so when I click on update, it checks to see if All the
textboxs and combos have values in? if they don`t throw a message saying
please check txtb1 for example?

Ta
MCN
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
private sub cmdUpdate (...) handles cmdUpdate.click
select case true
case txt1.text = ""
messagebox.show("your mess")
exit sub
case txt2.text = ""
messagebox.show("your mess")
exit sub
...
case cbo1.selectedindex = -1
messagebox.show("your mess")
exit sub
end select

' the rest of your update code
end sub

Hope it helps

eric

"MadCrazyNewbie" <te**@nospam.com> wrote in message
news:eM********************@karoo.co.uk...
Hey Group,

If I have for Example 3 Testboxs (txtb1, txtb2, txtb3) on my Form and 2
ComboBox`s (cbob1, cbob2) - All these are bound to a dataset, which new
feilds can be added to or modifyed from.

How can i get it so when I click on update, it checks to see if All the
textboxs and combos have values in? if they don`t throw a message saying
please check txtb1 for example?

Ta
MCN

Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.