In my program theres a form where the user enters the ID number and other details of a customer. i want the program to be able , If the ID number already exists when the user enters it and clicks on ok, to display an error message telling them that the ID already exists otherwise it adds the id and the details to a database. Im not sure how i would do that im thinking it would be an SQL statement? not sure. Thanks
tukky
0
Light Poster
Recommended Answers
Jump to PostPlease show your code work.
Jump to Posthuunm on the textboxid keydown event or leave event of the that
you can check the value given by the user like
if in db theres' is 1,5,6,9,8,6
while in any of the one event I'll write the codedim str as string,sqlstr as string,ans as boolean …
All 7 Replies
kvprajapati
1,826
Posting Genius
Team Colleague
pritesh2010
30
Posting Whiz in Training
tukky
0
Light Poster
tukky
0
Light Poster
pritesh2010
30
Posting Whiz in Training
tukky
0
Light Poster
pritesh2010
30
Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.