Team_Source wrote:
>
> <cfif IsDefined("form.Trans_Type2")>
> <cfelse>
here is your problem if your form.Trans_Type2 is a textbox,
which it
looks like it is.
the below code will NEVER run because a textbox is ALWAYS
defined, even
if it is blank.
so the <cfelse> part will never fire.
> <cfif len(trim(form.Trans_Type2)) gt 0>
> <cfquery name="InsertRecord2"
datasource="NBProdReports">
> Insert Into TblContractInfo_SubMenuTable (Task_Number,
User_ID,
> Contract_Number,
> Transaction_Type , Num_Checks_Trans)
> SELECT
>
MAX(TblMasterTrans.Task_Number),'#form.UserID#','#form.Contract_Number#',
> '#form.Trans_Type2#','#form.Num_Checks_Trans2#',
> From TblMasterTrans
> </cfquery>
> </cfif>
> </cfif>
> </cftransaction>
>
>
---
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com