Ask a Question related to ASP Database, Design and Development.
-
Frank Py #1
SQL Syntax Error
Having some problems with my SQL statement syntax:
Microsoft JET Database Engine (0x80040E14)
Syntax error (missing operator) in query expression
'MealsExCode=0000104Amount=23.56'.
Can anyone tell me what I might be doing wrong. Help apprecaited.
Thanks:
SQLstmt = "UPDATE Expense SET "
SQLStmt = SQLstmt & "ExDate='" & form_ExDate & "',"
SQLstmt = SQLstmt & "Expense=" & form_Expense
SQLstmt = SQLstmt & "ExCode=" & form_ExCode
SQLstmt = SQLstmt & "Amount=" & form_Amount
SQLStmt = SQLStmt & " WHERE ExpenseID=" & form_id
Set rstSimple = cnnSimple.Execute(SQLStmt)
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Frank Py Guest
-
Syntax error
I posted a question or two on this recently, and posts have been helpful. However, I have a new problem, and don't know what to do. To recap.... -
Help on Syntax error please
I'm new to MySQL. Sorry for asking for some probably very basic help. :( The following code is from a Dump of a php forums database (openBB... -
Syntax error?
Hi, I'm developing an ASP.NET web application with MySql 5. I have a little problem: if i create a stored procedure like this one: CREATE... -
error : syntax error at or near $1 for over select rows
This is the error i am getting when calling select * from cas_reset_qi_changedate('CAS','2003-02-03' ERROR: syntax error at or near "$1" at... -
syntax error ???
Hi, on login.php , we can see that : (...) $sql = "SELECT Login FROM logins WHERE Login='$fusername'"; $result = mysql_query($sql) or... -
Chris Hohmann #2
Re: SQL Syntax Error
"Frank Py" <fpy@proactnet.com> wrote in message
news:e2ixqw8RDHA.1720@TK2MSFTNGP10.phx.gbl...You're missing the comma between your field assignment clauses. You did> Having some problems with my SQL statement syntax:
>
> Microsoft JET Database Engine (0x80040E14)
> Syntax error (missing operator) in query expression
> 'MealsExCode=0000104Amount=23.56'.
>
> Can anyone tell me what I might be doing wrong. Help apprecaited.
> Thanks:
>
> SQLstmt = "UPDATE Expense SET "
> SQLStmt = SQLstmt & "ExDate='" & form_ExDate & "',"
> SQLstmt = SQLstmt & "Expense=" & form_Expense
> SQLstmt = SQLstmt & "ExCode=" & form_ExCode
> SQLstmt = SQLstmt & "Amount=" & form_Amount
> SQLStmt = SQLStmt & " WHERE ExpenseID=" & form_id
>
> Set rstSimple = cnnSimple.Execute(SQLStmt)
>
> *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
> Don't just participate in USENET...get rewarded for it!
it for the first one but not the others. In the future, when you
encounter an error, you should "Response.Write SQLStmt", copy the
outputted SQL statement and paste into the Access Query Builder/SQL
Server Query Analyzer depending on your database platform. This will
give you more details on the errors the SQL parser is encountering.
Also, when posting a database related issue please include your database
platform and version. I would also suggest you consider using a stored
procedure or a parameterized query for this update, again depending on
your database platform.
HTH
-Chris
Chris Hohmann Guest
-
Frank Py #3
Re: SQL Syntax Error
That helped with all my syntax errors. Thanks.
Sincerley,
Frank
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Frank Py Guest



Reply With Quote

