0

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.....

4
Contributors
4
Replies
5
Views
8 Years
Discussion Span
Last Post by jonc
0

hi sudeep123, if you're working for a database.. you need to compare it to your recent data...

0

just checked id entered with id on database.
If same then display error message, if not same then add into database.

0

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

0

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.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.