Click here to Skip to main content
15,891,423 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
O




The problem is that, if I fill a textbox and does fill another, it does give me the Message box but it is till saving. Why?
Posted
Updated 5-May-11 13:28pm
v3

1 solution

Firstly, it looks like you are comparing string to a single whitespace as opposed to being blank.

Also, your combobox comparisons are comparing text against itself, rather than checking if it's empty (should use [cbo].text = "" or [cbo].SelectedIndex = -1)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900