I think I answered my own question. The code below appears to
be working:
<CFIF IsDefined("FORM.JKID")>
<CFUPDATE DATASOURCE="ABC" TABLENAME="JobKSAs">
<CFLOCATION URL="ksa_confirm.cfm?JobID=#JobID#">
<CFELSE>
<!--- Check for the record first. Want to see if the KSA
has already been linked to this Job. --->
<cfquery name="KSACheck" datasource="ABC">
SELECT *
FROM JobKSAs
WHERE frn_JobID = #form.frn_JobID#
AND frn_KSAID = #form.frn_KSAID#
</cfquery>
<!--- If the KSA has NOT alreay been linked, then add the
linkage --->
<cfif KSACheck.recordcount EQ 0>
<CFINSERT DATASOURCE="ABC" TABLENAME="JobKSAs">
<CFLOCATION URL="ksa_confirm.cfm?JobID=#JobID#">
<cfelse>
<!--- If the KSA HAS alreay been linked, then do not add
to DB and inform user --->
<CFLOCATION
URL="ksa_already_linked.cfm?JobID=#JobID#">
</cfif>
</CFIF>