Compile function Delete_REACT_ESC_Record_From_SQL(Connection, Key, Record)

/*****************************************************************************\
	Deletes the given REACT_ESC record from the MSSQL database.
	
	History
	-------
	09/21/2010    KRF   Original Programmer
\*****************************************************************************/

Declare function SQL_Delete, SQL_Format
Ans = ""
				    
// List of key names and their values
Keys  = "REACT_NO" :@VM:SQL_Format(Field(Key, "*", 1), "STR"):@FM
Keys := "START_DTM":@VM:SQL_Format(Field(Key, "*", 2), "DATETIME")

//-------------------------------------------------------------------------------------------------
// Multi-valued Fields

*!! Delete records from MV tables first !!
* // SKELETON CODE
* If Ans EQ "" then
*    Ans = SQL_Delete(Connection, "", Keys)
* end

// REACT_ESC
If Ans EQ "" then
    Ans = SQL_Delete(Connection, "REACT_ESC", Keys)
end

Return Ans
