h1SEO
2009-03-18 15:44:40 UTC
I'm building a form that sends info to a database.
The form can be submitted if the field DateHRReceived is Null or has a date.
However, If DateHRReceived is a date in the database, it cannot be updated to
Null.
It should give an error message on submit.
I'm new, so I'm not sure what I need to do.
Thanks!
<cfquery name="EvaluationData" datasource="AGENCY_Personnel">
SELECT EmplID, EvaluationID, EvaluationTypeID, DateDue, EmployeeRating,
SupervisorRating, PlanOfAction, NewHire, HireDate, TrainingRequired, Comments,
DateHRReceived, UpdatedBy, DateHRReceived, DateUpdated
FROM EvaluationData WHERE EmplID = #URL.EmplID# AND (Deleted = 'false')
</cfquery>
<cfinput name="DateHRReceived" type="text"
value="#DateFormat(EvaluationData.DateHRReceived, "mm/dd/yyyy")#" size="31">
The form can be submitted if the field DateHRReceived is Null or has a date.
However, If DateHRReceived is a date in the database, it cannot be updated to
Null.
It should give an error message on submit.
I'm new, so I'm not sure what I need to do.
Thanks!
<cfquery name="EvaluationData" datasource="AGENCY_Personnel">
SELECT EmplID, EvaluationID, EvaluationTypeID, DateDue, EmployeeRating,
SupervisorRating, PlanOfAction, NewHire, HireDate, TrainingRequired, Comments,
DateHRReceived, UpdatedBy, DateHRReceived, DateUpdated
FROM EvaluationData WHERE EmplID = #URL.EmplID# AND (Deleted = 'false')
</cfquery>
<cfinput name="DateHRReceived" type="text"
value="#DateFormat(EvaluationData.DateHRReceived, "mm/dd/yyyy")#" size="31">