Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Insert Record Behavior - Duplicates 1

Status
Not open for further replies.

Omnillas

Programmer
May 4, 2004
29
US
What's the easier approach for handling inserts where a duplicate record may exist? ASP/MSSQL are the language and db in use.

I would like to display a pop-up indicating that a record already exists and list the keys attempted to be inserted.
 
Something like this:

strSQL = "Select keyname from yourtable where keyname = " & Request.Form("txtKey")

If Not rs.eof then
response.write("record exist")
Else
'insert record
End if
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top