Syntax error in query expression

I am receiving the following error message:
Microsoft][ODBC Microsoft Access Driver] Syntax error
(missing operator) in query expression 'customerid_cus='.
for the following code:
If IsEmpty(Request.Form("company_cus")) Then
rs_company.Source = "SELECT customerid_cus, company_cus FROM
customers_cus WHERE customerid_cus= "&
Request.QueryString("customerid") &" "
Else
rs_company.Source = "SELECT customerid_cus, company_cus FROM
customers_cus WHERE company_cus = '"&
Request.Form("company_cus") &"' "
End If
What could the problem be?

Are you sure that you are passing the querystring customerid
when the form
company_cus is empty.
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver
Valleybiz Internet Design
www.valleybiz.net
"aonefun" <[email protected]> wrote in
message
news:epmf3n$f3u$[email protected]..
>I am receiving the following error message:
>
> Microsoft][ODBC Microsoft Access Driver] Syntax error
(missing operator)
> in
> query expression 'customerid_cus='.
>
> for the following code:
>
> If IsEmpty(Request.Form("company_cus")) Then
>
> rs_company.Source = "SELECT customerid_cus, company_cus
FROM
> customers_cus
> WHERE customerid_cus= "&
Request.QueryString("customerid") &" "
>
> Else
>
> rs_company.Source = "SELECT customerid_cus, company_cus
FROM
> customers_cus
> WHERE company_cus = '"& Request.Form("company_cus")
>
> End If
>
> What could the problem be?
>

Similar Messages

  • TNG_recordset  Syntax error in query.  Incomplete query clause.

    I'm using the ADDT insert record form wizard and I keep getting this error: Syntax error in query. Incomplete query clause. Can anyone help?
    <br />
    <br /><%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
    <br />
    <!--#include file="../Connections/rentalpaypro.asp" -->
    <br />
    <!--#include file="../includes/common/KT_common.asp" -->
    <br />
    <!--#include file="../includes/tNG/tNG.inc.asp" -->
    <br /><%<br />'Start log out user<br />  Set logout = new tNG_Logout<br />  logout.setLogoutType "link"<br />  logout.setPageRedirect "../index.html"<br />  logout.Execute<br />'End log out user<br />%>
    <br /><%<br />'Make a transaction dispatcher instance<br />Dim tNGs: Set tNGs = new tNG_dispatcher<br />tNGs.Init "../"<br />%>
    <br /><%<br />' Start trigger<br />Dim formValidation: Set formValidation = new tNG_FormValidation<br />formValidation.Init<br />formValidation.addField "ContactFirstName", true, "text", "", "", "", ""<br />formValidation.addField "ContactLastName", true, "text", "", "", "", ""<br />formValidation.addField "EmailAddress", true, "text", "email", "", "", ""<br />formValidation.addField "BillingAddress", true, "text", "", "", "", ""<br />formValidation.addField "City", true, "text", "", "", "", ""<br />formValidation.addField "StateOrProvince", true, "text", "", "", "", ""<br />formValidation.addField "ZipCode", true, "numeric", "", "", "", ""<br />formValidation.addField "PhoneNumber", true, "text", "", "", "", ""<br />tNGs.prepareValidation formValidation<br />' End trigger<br />%>
    <br /><%<br />'Start Restrict Access to Page<br />  Dim restrict: Set restrict  = new tNG_RestrictAccess<br />  restrict.Init MM_rentalpaypro_STRING, "../"<br />'Grand Levels: Any<br />  restrict.Execute<br />'End Restrict Access to Page<br />%>
    <br /><%<br />' Make an insert transaction instance <br />Dim ins__Landlord_Contact_Info_: Set ins__Landlord_Contact_Info_ = new tNG_insert<br />ins__Landlord_Contact_Info_.init MM_rentalpaypro_STRING<br />tNGs.addTransaction ins__Landlord_Contact_Info_<br />' Register triggers<br />ins__Landlord_Contact_Info_.registerTrigger Array("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Insert1")<br />ins__Landlord_Contact_Info_.registerTrigger Array("BEFORE", "Trigger_Default_FormValidation", 10, formValidation)<br />ins__Landlord_Contact_Info_.registerTrigger Array("END", "Trigger_Default_Redirect", 99, "index.asp")<br />' Add columns<br />ins__Landlord_Contact_Info_.setTable ""Landlord_Contact Info""<br />ins__Landlord_Contact_Info_.addColumn "ContactFirstName", "STRING_TYPE", "POST", "ContactFirstName", ""<br />ins__Landlord_Contact_Info_.addColumn "ContactLastName", "STRING_TYPE", "POST", "ContactLastName", ""<br />ins__Landlord_Contact_Info_.addColumn "EmailAddress", "STRING_TYPE", "POST", "EmailAddress", ""<br />ins__Landlord_Contact_Info_.addColumn "BillingAddress", "STRING_TYPE", "POST", "BillingAddress", ""<br />ins__Landlord_Contact_Info_.addColumn "City", "STRING_TYPE", "POST", "City", ""<br />ins__Landlord_Contact_Info_.addColumn "CompanyName", "STRING_TYPE", "POST", "CompanyName", ""<br />ins__Landlord_Contact_Info_.addColumn "StateOrProvince", "STRING_TYPE", "POST", "StateOrProvince", ""<br />ins__Landlord_Contact_Info_.addColumn "ZipCode", "NUMERIC_TYPE", "POST", "ZipCode", ""<br />ins__Landlord_Contact_Info_.addColumn "Extension", "STRING_TYPE", "POST", "Extension", ""<br />ins__Landlord_Contact_Info_.addColumn "FaxNumber", "STRING_TYPE", "POST", "FaxNumber", ""<br />ins__Landlord_Contact_Info_.addColumn "PhoneNumber", "STRING_TYPE", "POST", "PhoneNumber", ""<br />ins__Landlord_Contact_Info_.setPrimaryKey "ContactInfoID", "NUMERIC_TYPE", "", ""<br />%>
    <br /><%<br />'Execute all the registered transactions<br />tNGs.executeTransactions<br />%>
    <br /><%<br />'Get the transaction recordset<br />Dim rs_Landlord_Contact_Info_<br />Dim rs_Landlord_Contact_Info__numRows<br /><br />Set rs_Landlord_Contact_Info_ = tNGs.getRecordset(""Landlord_Contact Info"")<br />rs_Landlord_Contact_Info__numRows = 0<br />%>

    Are you sure that you are passing the querystring customerid
    when the form
    company_cus is empty.
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "aonefun" <[email protected]> wrote in
    message
    news:epmf3n$f3u$[email protected]..
    >I am receiving the following error message:
    >
    > Microsoft][ODBC Microsoft Access Driver] Syntax error
    (missing operator)
    > in
    > query expression 'customerid_cus='.
    >
    > for the following code:
    >
    > If IsEmpty(Request.Form("company_cus")) Then
    >
    > rs_company.Source = "SELECT customerid_cus, company_cus
    FROM
    > customers_cus
    > WHERE customerid_cus= "&
    Request.QueryString("customerid") &" "
    >
    > Else
    >
    > rs_company.Source = "SELECT customerid_cus, company_cus
    FROM
    > customers_cus
    > WHERE company_cus = '"& Request.Form("company_cus")
    >
    > End If
    >
    > What could the problem be?
    >

  • Syntax error (parsing query)

    I'm trying to search based on two properties and got an exception:
    syntax error (parsing query);location=trexsahqt1v:30003 (Errorcode 2029)
    If i set only one condition my code is working fine
    My code....
    for(int i = 0; i < searchParams.length; i++)
    IQueryEntry queryEntry = indexCollection.getNewQueryEntry()    
    if ("createdby".equalsIgnoreCase(searchParams<i>.getPropertyName()))
             queryEntry.setRowType(IQueryEntry.ROW_TYPE_ATTRIBUTE);
             queryEntry.setTermAction(IQueryEntry.TERM_ACTION_EXACT);
             queryEntry.setPropertyName(PropertyName.createCreatedBy());
             queryEntry.setValue("same value")
             queryEntry.setPropertyOperator(IQueryEntry.PROPERTY_OPERATOR_EQUAL);
             queryEntryList.add(queryEntry);
       if ("modifiedby:".equalsIgnoreCase(searchParams<i>.getPropertyName()))
             queryEntry.setRowType(IQueryEntry.ROW_TYPE_ATTRIBUTE);
             queryEntry.setTermAction(IQueryEntry.TERM_ACTION_EXACT);
             queryEntry.setPropertyName(PropertyName.createCreatedBy());
             queryEntry.setValue("same value");
             queryEntry.setPropertyOperator(IQueryEntry.PROPERTY_OPERATOR_EQUAL);
             queryEntryList.add(queryEntry);
    Is any "AND" or "OR" operators I have to setup , if yes please let me know how?
    Really appreciate your help

    I'm trying to search based on two properties and got an exception:
    syntax error (parsing query);location=trexsahqt1v:30003 (Errorcode 2029)
    If i set only one condition my code is working fine
    My code....
    for(int i = 0; i < searchParams.length; i++)
    IQueryEntry queryEntry = indexCollection.getNewQueryEntry()    
    if ("createdby".equalsIgnoreCase(searchParams<i>.getPropertyName()))
             queryEntry.setRowType(IQueryEntry.ROW_TYPE_ATTRIBUTE);
             queryEntry.setTermAction(IQueryEntry.TERM_ACTION_EXACT);
             queryEntry.setPropertyName(PropertyName.createCreatedBy());
             queryEntry.setValue("same value")
             queryEntry.setPropertyOperator(IQueryEntry.PROPERTY_OPERATOR_EQUAL);
             queryEntryList.add(queryEntry);
       if ("modifiedby:".equalsIgnoreCase(searchParams<i>.getPropertyName()))
             queryEntry.setRowType(IQueryEntry.ROW_TYPE_ATTRIBUTE);
             queryEntry.setTermAction(IQueryEntry.TERM_ACTION_EXACT);
             queryEntry.setPropertyName(PropertyName.createCreatedBy());
             queryEntry.setValue("same value");
             queryEntry.setPropertyOperator(IQueryEntry.PROPERTY_OPERATOR_EQUAL);
             queryEntryList.add(queryEntry);
    Is any "AND" or "OR" operators I have to setup , if yes please let me know how?
    Really appreciate your help

  • Syntax error, insert "AssignmentOperator Expression" to complete Expression

    Hi experts,
    I am very new in Java. Currently, I get stuck in the exception of program. Please help me figure out what is the issue. The eclipse raises the error "Syntax error, insert "AssignmentOperator Expression" to complete Expression" at the command "exception;" as below code.
    Thanks,
    Hieu
    Edited by: user122479 on Apr 5, 2013 4:23 PM

    user122479 wrote:
    I put { code } as your advice, but it is still error.You put the tage in your *.java file?
    Oh dear!
    I think you should  take a few days to go trough the Java tutorials
    http://docs.oracle.com/javase/tutorial/ starting at "Trails Covering the Basics"
    Then you should find a tutorial on your IDE to learn how to import a project.
    Programming is a craft.
    And as with any craft you need some knowledge on your matter and training on your tools.
    A forum is not the right place to gather either one.
    bye
    TPD                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • 11g gateway for ODBC returns SYNTAX ERROR on query

    Hi,
    I have made a database link to an odbc link on a 11g gateway. The odbc driver for the database in question is called connx, a third party driver to connect to RMS files on an old vax. The odbc driver works fine as I tested it independently of the gateway.
    The database link connection is fine. I do desc tablename and it returns the correct columns
    I do for example select * from SICF090MLT@melt and it returns :
    meltdb>select * from SICF090MLT@melt;
    select * from SICF090MLT@melt
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    Illegal identifier
    A1."CHARGE_NO" , A1."MIX_ID" , A1."BUCKET_ID" , A1."AIM_ST" , A1."SCRAP_MIX_NAME" FROM << Syntax Error >> 'SICF090MLT' A1
    ORA-02063: preceding 3 lines from MELT
    As you can see all of the columns have been discovered by the query,
    I am not sure what can be the issue. Maybe a character translation issue? Some configuration settings for the gateway? Any ideas?
    On a side note: all other database links to other databases (sqlserver) work fine with this 11g gateway.
    The Best to all of you!

    Mireille,
    I am using a win32 driver.
    HS_FDS_SUPPORT_STATISTICS is false for all my database links. I have had issues with that in the past and have already learned my lesson :)
    I will check the quoted identifier setting for my odbc link and change it if I can.
    As a side note: for now I am using the DBMS_HS_PASSTHROUGH package to get around the problem, but it is better if I solve my original problem obviously. I will let you know.
    Merci et bonne journée.

  • SQLException syntax error in query

    I am baffled and hoping that maybe you can spot an error in my query - I can't seem to find it!
    The query is:
    INSERT INTO CreditCard (userID, type, name, number, expiration, addressID) VALUES (5, 1, 'Bill', '1264', 2004-04-10, 9)
    And in code it is:
    String sql = "INSERT INTO CreditCard (userID, type, name, number," + " expiration, addressID) VALUES (" + userId + ", " + type + ", \'" + name + "\', \'" + number + "\', " + expiration + ", " + addressId + ")";
    I keep getting error for this line:
    stmt.execute(sql);
    with the following message:
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement.
    at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6879)
    at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7036)
    at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(JdbcOdbc.java:3065)
    at sun.jdbc.odbc.JdbcOdbcStatement.execute(JdbcOdbcStatement.java:338)
    at jauction.server.CreditCardImpl.<init>(CreditCardImpl.java:65)
    at jauction.server.CreditCardTest.main(CreditCardTest.java:14)
    Do you spot the syntax error in the query? Is there any other reason why I could be getting this error?
    Similar INSERT INTO queries have been implemented and tested in this project of mine and they are working fine. I am baffled as to where the syntax error is in this query. If you spot it - could you point it out? Thanks.

    Thanks man, you saved me hours of debugging.
    I had an Access table with a column named TimeStamp, just couldn't get the damn thing to work. But I think both our problems are JDBC/SQL related, not Access related. In other words, it wouldn't work on any other RDBMS system either.
    Someone should put it in the documentation somewhere that using SQL datatype names for column names is a no-no.

  • Syntax error on query generation

    Hi,
    When I try to generate report syntax error occures. It's not a custom code. What do you think about it ?
    (syntax error in the following code:
      return.
      perform Debug_xfems.
    See some piece of generated file :
    REPORT RSRRNAME.
    FORM SELECT_4.
      if G_S_QCF-cmess eq rrkg_C_cmess-error.
        perform CU_MESS_send.
      endif.
        read Table <G_THX_s> assigning <G_SX_S>
             with table key k = G_SX_s-k.
        if sy-subrc gt 0.
          insert G_SX_S into table <G_THX_S> assigning <G_SX_S>.
        endif.
    ENDFORM.
      FORM MOVE_Z_SP_0001.
    ENDFORM.
      return.
      perform Debug_xfems.
    form check_fems using value(I_fems) type i.
      perform I_fems of           " REP I_FEMS = 2
              MOVE_Z_SP_0001
              DEBUG_XFems.
    endform.                      " now look at G_TSX_XFems
    Thanks in advance.
    Fiodar.

    Hi,
    I would suggest that you check OSS for existing SAP notes on the issue and if you find nothing, please create a SAP customer message.
    All the best,
    Mike

  • Syntax Error In Query

    Can someone fix this query for me?  I have been at it for an hour and can't locate the rogue error
    ISNULL(CAST(CONVERT(DECIMAL(18,4)(COUNT(CASE WHEN soldStatus IN ('Yes', 'Pending') THEN saleTotal ELSE NULL END))) AS FLOAT)/NULLIF(CAST(CONVERT(DECIMAL(18,4),(COUNT(DISTINCT(saleTotal))) AS FLOAT),0),0) As Percentage

    Hello Joe,
    You should format your T-SQL more proper, then it's easier to read and easier to find mistakes:
    ISNULL(CAST(CONVERT(DECIMAL(18,4),
    (COUNT(CASE WHEN soldStatus IN ('Yes', 'Pending')
    THEN saleTotal
    ELSE NULL END))) AS FLOAT)
    /NULLIF(CAST(CONVERT(DECIMAL(18,4), COUNT(DISTINCT(saleTotal))) AS FLOAT),0),0) As Percentage
    1. First line, there was a comma behind DECIMAL(18,4), missunt
    2. Last line, one opening bracket before COUNT to much
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • "Syntax error, insert "AssignmentOperator Expression" to complete ForInit"?

    I am getting this unknown error and do not know how to solve it.
    here is my code:
    it gives me the error for the first part of both for loops.
    int THISHOLDSTHEVALUEOFTHENUMBEROFTIMESTOLOOPINTHEFIRSTLOOP = 3;
              int THISHOLDSTHEVALUEOFTHENUMBEROFTIMESTOLOOPINTHESECONDLOOP = 3;
              int THISHOLDSTHECOUNTERVALUEFORTHEFIRSTLOOP = 0;
              int THISHOLDSTHECOUNTERVALUEFORTHESECONDLOOP = 0;
              int THISHOLDSTHEVALUECALCULATEDTHOUGHTHEFIRSTANDSECONDLOOP = 3;
              for(THISHOLDSTHECOUNTERVALUEFORTHEFIRSTLOOP;
                   THISHOLDSTHECOUNTERVALUEFORTHEFIRSTLOOP <= THISHOLDSTHEVALUEOFTHENUMBEROFTIMESTOLOOPINTHEFIRSTLOOP;
                        THISHOLDSTHECOUNTERVALUEFORTHEFIRSTLOOP++)
                   for(THISHOLDSTHECOUNTERVALUEFORTHESECONDLOOP;
                        THISHOLDSTHECOUNTERVALUEFORTHESECONDLOOP <= THISHOLDSTHEVALUEOFTHENUMBEROFTIMESTOLOOPINTHESECONDLOOP;
                             THISHOLDSTHECOUNTERVALUEFORTHESECONDLOOP++)
                        THISHOLDSTHEVALUECALCULATEDTHOUGHTHEFIRSTANDSECONDLOOP *= THISHOLDSTHEVALUECALCULATEDTHOUGHTHEFIRSTANDSECONDLOOP;
              }

    JacobsB wrote:
    it has to be like this
    int THISHOLDSTHEVALUEOFTHENUMBEROFTIMESTOLOOPINTHEFIRSTLOOP = 3;
              int THISHOLDSTHEVALUEOFTHENUMBEROFTIMESTOLOOPINTHESECONDLOOP = 3;
              int THISHOLDSTHECOUNTERVALUEFORTHEFIRSTLOOP;
              int THISHOLDSTHECOUNTERVALUEFORTHESECONDLOOP;
              int THISHOLDSTHEVALUECALCULATEDTHOUGHTHEFIRSTANDSECONDLOOP = 3;
              for(THISHOLDSTHECOUNTERVALUEFORTHEFIRSTLOOP = 0;
                   THISHOLDSTHECOUNTERVALUEFORTHEFIRSTLOOP <= THISHOLDSTHEVALUEOFTHENUMBEROFTIMESTOLOOPINTHEFIRSTLOOP;
                        THISHOLDSTHECOUNTERVALUEFORTHEFIRSTLOOP++)
                   for(THISHOLDSTHECOUNTERVALUEFORTHESECONDLOOP = 0;
                        THISHOLDSTHECOUNTERVALUEFORTHESECONDLOOP <= THISHOLDSTHEVALUEOFTHENUMBEROFTIMESTOLOOPINTHESECONDLOOP;
                             THISHOLDSTHECOUNTERVALUEFORTHESECONDLOOP++)
                        THISHOLDSTHEVALUECALCULATEDTHOUGHTHEFIRSTANDSECONDLOOP *= THISHOLDSTHEVALUECALCULATEDTHOUGHTHEFIRSTANDSECONDLOOP;
    Thanks JacobsB.

  • Syntax Errors in Recordset, Dreamweaver 8

    Hi All!
    I'm struggling to figure out Dreamweaver's syntax for a Recordset I'm building.  I'm using Dreamweaver 8, ColdFusion 9 to connect with my database, and Windows 7.
    I have to start by admitting I copied code from an similar program, and am trying to get it to work for me.
    Here's the error I get when I "test" the recordset:
    Syntax error. in query expression '1=1
    Here's the query:
    SELECT LastName, FirstName, MiddleName, Generation, PartyType
    FROM [Party Information]
    WHERE 1=1
      SELECT FullCaseNo, DocketSheet
      FROM [Case Information]
      WHERE 1=1
      <cfif IsDefined("Form.LastName") and Form.LastName NEQ "">
       AND PartyInformation.Last Like'#Form.LastName#%'
      </cfif>
      <cfif IsDefined("Form.FirstName") and Form.FirstName NEQ "">
       AND PartyInformation.First Like'#Form.FirstName#%'
      </cfif>
            <cfif IsDefined("Form.CaseNo") and Form.CaseNo NEQ "">
       AND CaseInformation.FullCaseNo ='#Form.CaseNo#'
      </cfif>
    ORDER BY LastName, FirstName, MiddleName, FullCaseNo
    For the sake of just seeing I deleted "WHERE 1=1" just to see if it would run, and I got another syntax error in the FROM clause.  In case this wasn't already obvious I'm brand new to Dreamweaver and just trying to get this thing to work.
    Any help is much appreciated, thanks in advance!!

    That's sad to hear.
    Anyway, if you're continuing to work on this, why dont you try replacing this:
    SELECT LastName, FirstName, MiddleName, Generation, PartyType
    FROM [Party Information]
    WHERE 1=1
    with this:
    SELECT LastName, FirstName, MiddleName, Generation, PartyType
    FROM PartyInformation
    WHERE 0=1
    WHERE 1=1 is usually a SQL code to prevent injections and to increase performance of the query you're running.
    WHERE 0=1 will usually look up all records in the table you're querying into - this is what you're trying to achieve here anyway.
    and rename the table on your DB from Party Information to PartyInformation

  • Method expression syntax error in jsp jsf 2.0 eclipse

    hi i made a simple bean jsp project, n ussed el to call methods in backing bean n show some text on the basis of method called....
    the project works perfectly fine, but theres a small issue, that eclipse jsp editor marks the expression as red n shows err.. the proj deploys fine on tomcat, n even works fine with expected results...
    wat should i do to fix that err show by eclipse...
    using eclipse helios with wtp 3.2, tomcat 7, jsf 2.0, el-api n el-impl 2.2 version jars in tomcat lib.... n latest jstl n standard jars...
    eg of jsp call -      <h:outputText value="#{myJsfBean.fetchCourseName(studentBean.courseId)}" />
    backing bean fn -
    public String fetchCourseName(Integer iCourseId){
              String theCourseName="";
              for(CourseBean aCourseBean:courseBeanList){
                   if(aCourseBean.getCourseId().equals(iCourseId)){
                        theCourseName=aCourseBean.getCourseName();
                        break;
              return theCourseName;
    jsp editor show err - Multiple annotations found at this line:
         - Syntax error in EL
         - Expression must be a value expression but is a method
         expression
    for "#{myJsfBean.fetchCourseName(studentBean.courseId)}" part of the expression
    its a trivial issue i think but annoying,, tried to search alot cudnt fix it....
    plz help

    my guess is that the project is not setup as being a JEE6 project and is being validated it as if it is a JEE5 application; the ability to be able to call methods with parameters through an EL expression is a new feature of JEE6 (or to be more precise: the el 2.2 API).
    Perhaps you can specify in your project properties that this is in fact a JEE6 project? Eclipse Helios should support JSF 2.0 out of the box.

  • Query syntax error after multiprovider change

    Hi everyone,
    I removed key figures from a multicube, changed a query on top afterwards and saved it. The key figures are no longer in the key figure list of the query in the Query designer, and are no longer used in any place within the query.
    Now, I'm getting a syntax error on query execution, since the compiled query still contains a reference to the old key figures. Regeneration via RSRT or saving under a new name doesn't work, and to delete the generated report I need a developer key.
    Any ideas?
    Regards,
    Tilman

    Hi Shashank,
    thanks for your response.
    I did try the "check query" button, it didn't return an error. When executing the query via rsrt, I get a dump due to "Syntax error in program GP48VM7K0MSF08DRO2382A2PSTI ". The program still contains data type references to the removed infoobjects. When checking the program via SE38, you get just that syntax error.
    I'm looking for a way to clean these things up. Even when creating a new query on the aggregation level (I was talking about a multiprovider earlier, which is located underneath), the error pops up. I activated all the objects along the way, with no effect.
    Regards,
    Tilman

  • Syntax error (missing operator) in query expression works in sql

    Hi guys,
    I am having a problem with this query in Access 2007, it runs
    fine in MSSQL.
    I get this error when I run it.
    [Macromedia][SequeLink JDBC Driver][ODBC
    Socket][Microsoft][ODBC Microsoft Access Driver] Syntax error
    (missing operator) in query expression
    'tbl_skuoption_rel.optn_rel_Option_ID = tbl_skuoptions.option_ID
    INNER JOIN tbl_skus ON tbl_skuoption_rel.optn_rel_SKU_ID =
    tbl_skus.SKU_ID INNER JOIN tbl_products AS p ON
    tbl_skus.SKU_ProductID = p.product_ID'.

    Access may require parenthesis ( ) around the JOINs when
    joining more than two tables

  • Syntax error (missing operator) in query expression

    Hi all
    I am creating a couple of pages where a dynamic list is created from an access database and then products from that list are displayed, the user then has the option of clicking more details, this then should pass the KITID over to the details page, However when i click on the details page i get the following error
    Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
    [Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'KitID = Kit 01'.
    /classicclocks/Kieninger_gallery.asp, line 21
    Here is the code from the page i am building, can anybody see anything obvious here
    strKitID = Request.QueryString("KitID")
    ' If KitID does not exist then redirect to Gallery page
    If strKitID = False Then
      Response.Redirect("kit_gallerytest.asp")
    End If
    ' SQL Query for specific KitID details only
    Dim objRS
    Set objRS = Server.CreateObject ("ADODB.Recordset")
    ' Open new objRS
      strSQL = "SELECT KitID,ImgKitCatalogue,KitDescriptionShort FROM tblMovements WHERE KitID = " & strKitID & " ORDER BY KitID"
      objRS.Open strSQL, MM_dbConn_STRING,,,adCmdTable
      ' Get all rows from table and asign values to array for use in form
      Do While Not(objRS.EOF)
      Images = True
      fsImagesArray = objRS.GetRows()
        Const arrKitID = 0
        Const arrImgKitCatalogue = 1
        Const arrKitDescriptionShort = 2
      Loop
    ' Close objConn and objRS
    objRS.Close
    strSQL = "SELECT * From tblMovements WHERE KitID = " & strKitID
    objRS.Open strSQL, MM_dbConn_STRING
    thanks
    John

    String values in a SQL where clause must be wrapped in quotes. Try this:
    strSQL = "SELECT KitID,ImgKitCatalogue,KitDescriptionShort FROM tblMovements WHERE KitID = '" & strKitID & "' ORDER BY KitID"

  • "java ODBC Microsoft Access Driver Syntax error (missing operator) in query

    Hi I am new to java and I am getting this error message when using java to access and insert data into an MS Access database.
    "java ODBC Microsoft Access Driver Syntax error (missing operator) in query expression"
    The commands are
    String insertCommand = "INSERT into MetricOutput(A1,A,DRR,DeRR,RE,WDRR,WDeRR,WRE,ARF,SRF,HRF,WARF,WSRF,WHRF,SDC,WSDC,MAR,WMAR,H1,H11,H2,H21,cluster) "+
                             "VALUES("+comMappedCount+","+stdCount+","+DRR+","+DeRR+","+RE+","+WDRR+","+WDeRR+","+WRE+","+ARF+","+SRF+","+HRF+","+WARF+","+WSRF+","+WHRF+","+SDC+","+WSDC+","+MAR+","+WMAR+","+H1+","+H11+","+H2+","+H21+",+array)";

    "VALUES("+comMappedCount+","+stdCount+","+DRR+","+DeRR+","+RE+","+WDRR+","+WDeRR+","+WRE+","+ARF+","+SRF+","+HRF+","+WARF+","+WSRF+","+WHRF+","+SDC+","+WSDC+","+MAR+","+WMAR+","+H1+","+H11+","+H2+","+H21+",+array)";After looking at your post in the editor, I see what your real query looks like.  You realize that ",+array[i])" is part of the query, right?  And not actually looking at your Java array?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • Chart of Accounts Upload

    Hi , I am working on upload of Chart of Accounts. Here I have to upload the Group Chart of Accounts and then the Operational Chart of Accounts( company code level ). Can you please suggest a detailed right approach to do it  ? I am currently  using t

  • Missing user-defined fields (project definition) in project inform. system

    Dear PS friends, I have extended the CI_PROJ structure with some user-defined fields. I have started report RCNCT001 (to analyze these new fields in the project information system). The include RCNPROJR was generated and contains the new fields (tabl

  • CD BURN RATE SLOWWWW

    Has anyone else had problems with their Burn speed decreasing lately? My CDs would usually burn within 2-3 minutes. Now they are taking 10 or so minutes. Anyone else having this annoying problem?

  • Article: Object-flow Programming - Merging Dataflow and Object-Oriented Programming

    I just posted an ExpressionFlow article: Object-flow Programming - Merging Dataflow and Object-Oriented Programming I guess you may find it interesting. If you like it, you should bookmark it with one of the social bookmarking tools (click the bookma

  • No puedo bajar itunes 10.5 que puedo hacer?

    estoy tratando de bajar Itunes 10.5 y mi computadora no me lo permite que puedo hacer?