943,774 Members | Top Members by Rank

Ad:
Mar 31st, 2009
0

Text box Validation

Expand Post »
ITs a simple textbox

ITs works as a ID no in a program. So a person cannot have similar id no..so how to do that..anyone>>>

If user enters the same number then display error message " you entered the same number" --when the user clicks the cmd.submit button.....
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sudeep123 is offline Offline
6 posts
since Mar 2009
Mar 31st, 2009
0

Re: Text box Validation

hi sudeep123, if you're working for a database.. you need to compare it to your recent data...
Reputation Points: 19
Solved Threads: 115
Nearly a Posting Virtuoso
cguan_77 is offline Offline
1,317 posts
since Apr 2007
Mar 31st, 2009
0

Re: Text box Validation

just checked id entered with id on database.
If same then display error message, if not same then add into database.
Reputation Points: 1182
Solved Threads: 392
Posting Sensei
Jx_Man is offline Offline
3,138 posts
since Nov 2007
Mar 31st, 2009
0

Re: Text box Validation

Click to Expand / Collapse  Quote originally posted by sudeep123 ...
ITs a simple textbox

ITs works as a ID no in a program. So a person cannot have similar id no..so how to do that..anyone>>>

If user enters the same number then display error message " you entered the same number" --when the user clicks the cmd.submit button.....
THIS IS FOR VB 6.0
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sudeep123 is offline Offline
6 posts
since Mar 2009
Mar 31st, 2009
0

Re: Text box Validation

Click to Expand / Collapse  Quote originally posted by Jx_Man ...
just checked id entered with id on database.
If same then display error message, if not same then add into database.
This is what I would recommend also.
You could perhaps have a method which adds the user to the database, and another method which updates the user if they already exist.
Then, you could check if they exist and if they do, run the update method. If they don't exist, run the add method.
Reputation Points: 13
Solved Threads: 17
Junior Poster
jonifen is offline Offline
152 posts
since Nov 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: plz kindly help me
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: ReDim error!





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC