I have the following sql statement in ASP:
Basically this works perfectly when a record exists, can this be easily tweaked to INSERT as well if a record doesn’t exist?
Thanks.
Code:
sql = "UPDATE [System_Terms] SET "
sql = sql & "[Terms Text]='" & Request.Form("EditTermsText") & "'"
sql = sql & " WHERE [SystemID] = '" & id & "'"
Basically this works perfectly when a record exists, can this be easily tweaked to INSERT as well if a record doesn’t exist?
Thanks.