Text box Validation

Reply

Join Date: Mar 2009
Posts: 6
Reputation: sudeep123 is an unknown quantity at this point 
Solved Threads: 0
sudeep123 sudeep123 is offline Offline
Newbie Poster

Text box Validation

 
0
  #1
Mar 31st, 2009
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.....
Reply With Quote Quick reply to this message  
Join Date: Apr 2007
Posts: 1,109
Reputation: cguan_77 has a little shameless behaviour in the past 
Solved Threads: 91
cguan_77's Avatar
cguan_77 cguan_77 is offline Offline
Veteran Poster

Re: Text box Validation

 
0
  #2
Mar 31st, 2009
hi sudeep123, if you're working for a database.. you need to compare it to your recent data...
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 2,641
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Solved Threads: 245
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Posting Maven

Re: Text box Validation

 
0
  #3
Mar 31st, 2009
just checked id entered with id on database.
If same then display error message, if not same then add into database.
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 6
Reputation: sudeep123 is an unknown quantity at this point 
Solved Threads: 0
sudeep123 sudeep123 is offline Offline
Newbie Poster

Re: Text box Validation

 
0
  #4
Mar 31st, 2009
Originally Posted by sudeep123 View 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.....
THIS IS FOR VB 6.0
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 140
Reputation: jonifen is an unknown quantity at this point 
Solved Threads: 15
jonifen jonifen is offline Offline
Junior Poster

Re: Text box Validation

 
0
  #5
Mar 31st, 2009
Originally Posted by Jx_Man View Post
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC