Compile function Delete_EPI_SUSCEPTOR_Record_From_SQL(Connection, Key, Record)

/*****************************************************************************\
	Deletes the given EPI_SUSCEPTOR 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 = "CONFIG_ID":@VM:SQL_Format(Key, "STR")

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

!! Delete records from MV tables first !!

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

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

Return Ans
