Compile function Delete_MAKEUP_WAFERS_Record_From_SQL(Connection, Key, Record)

/*****************************************************************************\
	Deletes the given MAKEUP_WAFERS record from the MSSQL database.
	
	History
	-------
	11/08/2023   JRO  Original Programmer
\*****************************************************************************/

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

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

Return Ans

