CFF KB - Carrz-Fox-Fire Promotions Knowledge Base
CFF KB is all about 1 thing: The Sharing of Knowledge and the Power we gain from it.Knowledge Base
- Breadrumbs:
Microsoft JET Database Engine (0x80040E14) Syntax error (missing operator) in query expression
- Article ID:
52 - Date Created
Tuesday, November 23, 2010 - This Article Has been Viewed
1751 times - Short Desc
When writing your Parameters Queries out within your SQL Statement, you might leave an invalid character behind. - Details
When using Parameters or simple ASP SQL Statements, you might end of leaving behind a character that was once used in the statement that is now replaced by a ? or @ symbol.
If this happens, you will receive the following error.
Microsoft JET Database Engine (0x80040E14)
Syntax error (missing operator) in query expression '(((tblTalent.ProfessionServiceID)=?) AND ((tblAccounts.AccountNumber)=1?) AND ((tblTalent.TalentID)=?))'.
/IDResults.asp, line 92 - Recreate Issue
To recreate this issue, leave an invalid character in your SQL Statement
Example<%
(((tblTalent.ProfessionServiceID)=?) AND ((tblAccounts.AccountNumber)=1?) AND ((tblTalent.TalentID)=?))
%>
As you can see in the above example, there is the # 1 left in the code<%
(tblAccounts.AccountNumber)=1?)
%> - Resolve Issue
To correct this issue, remove the invalid character, in this case, it is the # 1
<%
(((tblTalent.ProfessionServiceID)=?) AND ((tblAccounts.AccountNumber)=?) AND ((tblTalent.TalentID)=?))
%>
Share With Friends (Updated 6-8-2010)
Recent Articles
All Topics
- Coming Soon - Knowledge Exchange
Trending Articles
- Microsoft VBScript runtime error '800a0046' Permission denied FileSystemObject 24695
- Microsoft OLE DB Provider for SQL Server error '80040e57' String or binary data would be truncated. or The field is too small to accept the amount of data you attempted to add. Try inserting or pasting less data. 21297
- ADODB.Parameters error '800a0e7c' Parameter object is improperly defined 19544
- After Effects warning: Audio conforming failed for the following file .cfa. Perhaps due to disk space 17785
- The backup set holds a backup of a database other than the existing 16825