<cfinclude template="fabtoolbar.cfm">
<cfif isdefined("form.yes"

is "Yes">
<cfquery name="fabdelete" datasource="mimast">
SELECT *
FROM mimast
WHERE mimast.workorno = '#form.workorno#'
</cfquery>
<!---Display Success Message--->
<cfoutput query="fabdelete">
<h3>Work Order Number #form.workorno# has been deleted.</h3>
</cfoutput>
<cfquery name="deletefab" datasource="mimast">
DELETE
FROM mimast
WHERE mimast.workorno = '#form.workorno#'
</cfquery>
<cfelse>
<cfoutput><h3>Work Order Number #form.workorno# not deleted.</h3></cfoutput>
</cfif>
This is all I'm doing on the delete page. The first query I stuck in there to make sure that it was finding the correct record and the second, of course, is doing the deleting. It finds the record successfully, just won't delete it.
mkyzar