Aug 17, 2005 #1 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.
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.
Aug 17, 2005 1 #2 Kendel Programmer Apr 24, 2002 1,512 US 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 Upvote 0 Downvote
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