Re: Syntax Error In Update Statement

2008-05-23 Thread Charlie Griefer
On Fri, May 23, 2008 at 1:14 PM, Patrick Hedgepath [EMAIL PROTECTED] wrote: Can anybody see the syntax error that CF8 keeps giving me for this query? The query was made by DW CS3 and worked until I added a new field by hand (Location). I can't see any reason it would not work. ,

RE: Syntax Error In Update Statement

2008-05-23 Thread webmaster
I actually want that field to be a 0 if no data was entered on the form. -Original Message- From: Charlie Griefer [mailto:[EMAIL PROTECTED] Sent: Friday, May 23, 2008 4:22 PM To: CF-Talk Subject: Re: Syntax Error In Update Statement On Fri, May 23, 2008 at 1:14 PM, Patrick Hedgepath

Re: Syntax Error In Update Statement

2008-05-23 Thread Greg Morphis
What error does CF give? On Fri, May 23, 2008 at 3:14 PM, Patrick Hedgepath [EMAIL PROTECTED] wrote: Can anybody see the syntax error that CF8 keeps giving me for this query? The query was made by DW CS3 and worked until I added a new field by hand (Location). I can't see any reason it would

RE: Syntax Error In Update Statement

2008-05-23 Thread webmaster
) , Phone= (param 11) , Fax= '' WHERE ID= (param 12) VENDORERRORCODE 3092 -Original Message- From: Greg Morphis [mailto:[EMAIL PROTECTED] Sent: Friday, May 23, 2008 4:25 PM To: CF-Talk Subject: Re: Syntax Error In Update Statement What error does CF give? On Fri, May 23, 2008

Re: Syntax Error In Update Statement

2008-05-23 Thread Charlie Griefer
:22 PM To: CF-Talk Subject: Re: Syntax Error In Update Statement On Fri, May 23, 2008 at 1:14 PM, Patrick Hedgepath [EMAIL PROTECTED] wrote: Can anybody see the syntax error that CF8 keeps giving me for this query? The query was made by DW CS3 and worked until I added a new field by hand

Re: Syntax Error In Update Statement

2008-05-23 Thread Greg Morphis
[mailto:[EMAIL PROTECTED] Sent: Friday, May 23, 2008 4:22 PM To: CF-Talk Subject: Re: Syntax Error In Update Statement On Fri, May 23, 2008 at 1:14 PM, Patrick Hedgepath [EMAIL PROTECTED] wrote: Can anybody see the syntax error that CF8 keeps giving me for this query? The query was made

RE: Syntax Error In Update Statement

2008-05-23 Thread webmaster
PROTECTED] Sent: Friday, May 23, 2008 4:30 PM To: CF-Talk Subject: Re: Syntax Error In Update Statement On Fri, May 23, 2008 at 1:25 PM, [EMAIL PROTECTED] wrote: I actually want that field to be a 0 if no data was entered on the form. then the 0 value should be surrounded by single quotes

Re: Syntax Error In Update Statement

2008-05-23 Thread Greg Morphis
) , Phone= (param 11) , Fax= '' WHERE ID= (param 12) VENDORERRORCODE 3092 -Original Message- From: Greg Morphis [mailto:[EMAIL PROTECTED] Sent: Friday, May 23, 2008 4:25 PM To: CF-Talk Subject: Re: Syntax Error In Update Statement What error does CF give? On Fri, May 23, 2008

RE: Syntax Error In Update Statement

2008-05-23 Thread webmaster
: Friday, May 23, 2008 4:30 PM To: CF-Talk Subject: Re: Syntax Error In Update Statement Also.. what is location? Do yow know what a CLOB is? That's a HUGE character field.. can that not be a varchar? On Fri, May 23, 2008 at 3:25 PM, [EMAIL PROTECTED] wrote: I actually want that field to be a 0

Re: Syntax Error In Update Statement

2008-05-23 Thread morgan l
The query you posted (UPDATE HomeCareCompany) is not the query reporting the error ( UPDATE Physician ) On Fri, May 23, 2008 at 3:28 PM, [EMAIL PROTECTED] wrote: One that is not very helpful :( Error Executing Database Query. Syntax error in UPDATE statement. The error occurred in

RE: Syntax Error In Update Statement

2008-05-23 Thread webmaster
: Re: Syntax Error In Update Statement Is this the same query? The query you posted was using a different table cfquery datasource=#DSN# name=UpdateCompany UPDATE HomeCareCompany SET Active=cfif IsDefined(FORM.Active) The query below uses Physician On Fri, May 23, 2008 at 3:28 PM, [EMAIL

Re: Syntax Error In Update Statement

2008-05-23 Thread Charlie Griefer
On Fri, May 23, 2008 at 1:32 PM, [EMAIL PROTECTED] wrote: Even if it is a numeric field in the database? I have tried removing the entire statement from the update query and it still gives an error. the cfsqltype you specified is CLOB. -- A byte walks into a bar and orders a pint. Bartender

Re: Syntax Error In Update Statement

2008-05-23 Thread Greg Morphis
If it's numeric in the DB it should NOT be cf_sql_clob On Fri, May 23, 2008 at 3:34 PM, morgan l [EMAIL PROTECTED] wrote: The query you posted (UPDATE HomeCareCompany) is not the query reporting the error ( UPDATE Physician ) On Fri, May 23, 2008 at 3:28 PM, [EMAIL PROTECTED] wrote: One

RE: Syntax Error In Update Statement

2008-05-23 Thread webmaster
- From: Greg Morphis [mailto:[EMAIL PROTECTED] Sent: Friday, May 23, 2008 4:37 PM To: CF-Talk Subject: Re: Syntax Error In Update Statement If it's numeric in the DB it should NOT be cf_sql_clob On Fri, May 23, 2008 at 3:34 PM, morgan l [EMAIL PROTECTED] wrote: The query you posted (UPDATE

Re: Syntax Error In Update Statement

2008-05-23 Thread Charlie Griefer
On Fri, May 23, 2008 at 1:58 PM, [EMAIL PROTECTED] wrote: When I change it to CF_SQL_NUMERIC the error persists. Even if I remove the entire statement , Location=cfif IsDefined(FORM.Location) AND #FORM.Location# NEQ cfqueryparam value=#FORM.Location# cfsqltype=CF_SQL_NUMERIC maxlength=15

RE: Syntax Error In Update Statement

2008-05-23 Thread webmaster
-Original Message- From: Charlie Griefer [mailto:[EMAIL PROTECTED] Sent: Friday, May 23, 2008 5:06 PM To: CF-Talk Subject: Re: Syntax Error In Update Statement On Fri, May 23, 2008 at 1:58 PM, [EMAIL PROTECTED] wrote: When I change it to CF_SQL_NUMERIC the error persists. Even if I remove

Re: Syntax Error In Update Statement

2008-05-23 Thread Greg Morphis
: Re: Syntax Error In Update Statement On Fri, May 23, 2008 at 1:58 PM, [EMAIL PROTECTED] wrote: When I change it to CF_SQL_NUMERIC the error persists. Even if I remove the entire statement , Location=cfif IsDefined(FORM.Location) AND #FORM.Location# NEQ cfqueryparam value=#FORM.Location

Re: Syntax Error In Update Statement

2008-05-23 Thread Charlie Griefer
Subject: Re: Syntax Error In Update Statement On Fri, May 23, 2008 at 1:58 PM, [EMAIL PROTECTED] wrote: When I change it to CF_SQL_NUMERIC the error persists. Even if I remove the entire statement , Location=cfif IsDefined(FORM.Location) AND #FORM.Location# NEQ cfqueryparam value

RE: Syntax Error In Update Statement

2008-05-23 Thread webmaster
added the additional field like I mentioned earlier. Then even removing the field does not help now. -Original Message- From: Greg Morphis [mailto:[EMAIL PROTECTED] Sent: Friday, May 23, 2008 5:26 PM To: CF-Talk Subject: Re: Syntax Error In Update Statement Holy F!?!?!?! .. surely you

RE: Syntax Error In Update Statement

2008-05-23 Thread webmaster
I would assume it is because it is a keyword used in SQL or Database syntax. Again Dream Weaver wrote the code. -Original Message- From: Charlie Griefer [mailto:[EMAIL PROTECTED] Sent: Friday, May 23, 2008 5:30 PM To: CF-Talk Subject: Re: Syntax Error In Update Statement why

Re: Syntax Error In Update Statement

2008-05-23 Thread Charlie Griefer
. -Original Message- From: Charlie Griefer [mailto:[EMAIL PROTECTED] Sent: Friday, May 23, 2008 5:30 PM To: CF-Talk Subject: Re: Syntax Error In Update Statement why is the column State in double quotes? On Fri, May 23, 2008 at 2:18 PM, [EMAIL PROTECTED] wrote: It is a number field

RE: Syntax Error In Update Statement

2008-05-23 Thread Bobby Hartsfield
. This query was working until I added the additional field like I mentioned earlier. Then even removing the field does not help now. -Original Message- From: Greg Morphis [mailto:[EMAIL PROTECTED] Sent: Friday, May 23, 2008 5:26 PM To: CF-Talk Subject: Re: Syntax Error In Update Statement