Syntax error: Missing operand after 'Number' operator

If Serial_NumberTextBox.Text = "" Then
            Exit Sub
        Else
            Dim cantfind As String = Serial_NumberTextBox.Text
TravelINFOBindingSource.Filter = "(Convert(Serial Number, 'System.String') LIKE '" & Serial_NumberTextBox.Text & "')"
            If TravelINFOBindingSource.Count <> 0 Then
                With Form5.DataGridView1
                    .DataSource = TravelINFOBindingSource
                End With
            Else
                TextBox1.Text = "Ticket is either expired or not avaliable!"
                TextBox1.ForeColor = Color.Red
                Serial_NumberTextBox.Text = ""
                Serial_NumberTextBox.Select()
                Serial_NumberTextBox.SelectAll()
            End If
        End If
where is the error !!! help me plz
           

Hello,
Like syntax for this is the same as SQL Like, see
the following documentation and note the percent symbol. Also remove the ( and ) in the string.
Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

Similar Messages

  • "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?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Issue sourcing from Microsoft Access - Syntax error (missing operator)

    I apologize if this has been discussed before. I used the search and went through 7 pages of results, but didn't see a similar issue.
    I'm using Windows 7, ODI 11.1.1.5.
    I'm trying to source from a local MS Access DB to an Oracle DB.
    The session fails pretty much immediately (on step 3) - trying to pull data from the source table.
    "Syntax error (missing operator) in query expression"
    The source table is very simple and for this test I'm using no joins. Literally a 'select * from'.
    However - when I look at the SQL generated - it's wrong. It's got duplicate lines in the SQL and not all columns selected have a comma after and before the next column.
    If I run it direct on Access - I get the same error.
    If I clean up the SQL - it'll run fine on Access.
    I'm using the SQL to Oracle LKM.
    I wondered if it was something with the ODBC driver - so I've tried other versions of ODBC drivers for MS Access, and even switched the database itself from the Office 2007 format, back to 2003, and tried a driver for that.
    Same result.
    If I go to the model and right click and look for the data in the table - it displays fine. So obviously ODI can connect and see the data...
    So I guess my questions are:
    - is the SQL to Oracle LKM the correct one to source from Access ? I've even gone into it and specified MS Access as the source. Same result.
    - if it is the right one - what's going on ?? I've got to assume other people are pulling data from MS Access. Why the garbage SQL ? Clearly I'm missing something.
    - and finally - worst case - but is there a way for me to overwrite the SQL being generated so I can correct it myself. This will be a PITA since I'll be source from a bunch of tables - but at least it might be a temporary stop gap...
    thanks

    I'm going to mark this as closed for now. I solved the SQL issue. It was to do with the way the tables / fields were named and how the fields were being brought into the workflow. Tidying up there fixed the problem.
    Getting past that brought me to several other issues which I'm still working through. The current is an Invalid Fetch size error - but that appears to have been resolved in patch Doc ID: 13528165 in ODI 11g (ver 11.1.1.5.0)
    given the initial issue that I'd raised is no longer a concern - I'm closing.
    Edited by: 940843 on Jun 15, 2012 1:27 PM

  • Help! This is driving me crazy. CASE statement report syntax error (missing operator)

    Hi
    Can anyone help with this SQL statement please. It uses a
    CASE statement but I keep getting back a syntax error (missing
    operator) error message. The SQL statement works without the CASE
    statement, so everything else is fine - its just when I put the
    CASE statement back in.
    Here's the SQL statement:-
    SELECT transactions.ourRef, transactions.transDate, CASE WHEN
    transactions.transTypeID = 2 THEN transactionDetails.goodsVatable *
    -1 ELSE transactionDetails.goodsVatable END,
    transactionDetails.goodsNonVat, transactionDetails.VAT,
    transactionDetails.grandTotal, clients.clientCode,
    transTypes.transTypeDesc
    FROM transactions, transactionDetails, clients, transTypes
    WHERE transactions.transID = transactionDetails.transID
    AND transactions.clientID = clients.clientID
    AND transactions.transTypeID = transTypes.transTypeID
    TransID = 2 means that its a credit not instead of an
    invoice, therefore I want the goods vatable returned as a negative
    number.
    Thanks in advance.
    Wez

    quote:
    ...the client wishes for me to use an MS Access db
    Too bad you didn't say that to begin with. I believe that
    with Access you might consider using IIF().
    Syntax:
    IIf(expr, truepart, falsepart)
    SELECT transactions.ourRef,
    transactions.transDate,
    IIf(transactions.transTypeID = 2,
    transactionDetails.goodsVatable * -1,
    transactionDetails.goodsVatable),
    transactionDetails.goodsNonVat,
    transactionDetails.VAT,
    transactionDetails.grandTotal,
    clients.clientCode,
    transTypes.transTypeDesc
    FROM transactions, transactionDetails, clients, transTypes
    WHERE transactions.transID = transactionDetails.transID
    AND transactions.clientID = clients.clientID
    AND transactions.transTypeID = transTypes.transTypeID
    Phil

  • [ODBC Microsoft Access Driver] Syntax error (missing operator)

    Aello' - as you can see in my database table their are two
    records to delete based on the HISTORY_ID of 1. This was working
    just fine when I was using a MS SQL Server database but when I
    switched to the MS Access database I get this error now.
    Is their a syntax difference?

    mikeap wrote:
    > Attached code. Clearly their are records to delete, what
    am I missing?
    >
    > Using MS Access database.
    >
    > [Macromedia][SequeLink JDBC Driver][ODBC
    Socket][Microsoft][ODBC Microsoft
    > Access Driver] Syntax error (missing operator) in query
    expression
    > 'R_PROJECT_MEDIA WHERE Media_ID IN (1)'.
    >
    > <cfquery datasource="tbar">
    > DELETE R_HISTORY_MEDIA
    > WHERE History_ID IN (#FORM.pHistory#)
    > </cfquery>
    DELETE
    FROM R_HISTORY_MEDIA
    WHERE History_ID IN (#FORM.pHistory#)
    Jochem
    Jochem van Dieten
    Adobe Community Expert for ColdFusion

  • 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"

  • Syntax error: bad digit in number

    I made a panel for ID cs5, the panel and buttons work fine.
    But in the panel is one button with a script, if i click this button i get an syntax error, bad digit in number.
    The script works fine on its own but not from the panel.
    Any help is very much appreciated
    thnx
    Harald

    Try to check this:
    1) the  script you insert in the button must not contain  any kind of  comment ( //  or /* */    ) ( configurator doesn'accept any comment inside the button)
    2) each statement is separated by  a semicolon  ( ; )
    the syntax must be perfect
    Anyway if you have difficult to find the problem you can link the button to the
    Yourscript .jsx  file

  • How to solve System.Data.OleDbException (0x80040E14): Syntax error (missing operator) in query expression..

    The codes are..
     Private Sub Button5_Click(sender As Object, e As EventArgs) Handles Button5.Click
            conn.ConnectionString = connstring
            If conn.State = ConnectionState.Closed Then
                conn.Open()
            Else
                MsgBox("Close")
            End If
            If (String.IsNullOrWhiteSpace(TextBox1.Text)) Then
                MessageBox.Show("PLEASE FILL IN ALL THE BOXES")
            ElseIf (String.IsNullOrWhiteSpace(TextBox2.Text)) Then
                MessageBox.Show("PLEASE FILL IN ALL THE BOXES")
            ElseIf (String.IsNullOrWhiteSpace(RichTextBox1.Text)) Then
                MessageBox.Show("PLEASE FILL IN ALL THE BOXES")
            End If
            Try
                Dim SqlQuery As String = "INSERT INTO Research (Title,Abstract,Proponents,Ryear) VALUES ('" & TextBox1.Text & "', '" & RichTextBox1.Text & "', '"
    & TextBox2.Text & "', '" & DateTimePicker1.Text & "')"
                Dim SqlCommand As New OleDbCommand
                With SqlCommand
                    .CommandText = SqlQuery
                    .Connection = conn
                    .ExecuteNonQuery()
                End With
                MsgBox("One record Succesfully Added")
            Catch ex As Exception
                MsgBox(ex.ToString)
            End Try
            Me.Close()
            main.Show()
        End Sub
    The situation is, I cannot add data if it is copied from the text from the ms word and paste it to the RichTextbox in my project..I can only add if I type Manually the data the richtextbox..If I copy paste it..this error comes out.
    Please help me to solve this problem..i attached the image of the error

    Windows Form forums are here.
    http://social.msdn.microsoft.com/Forums/windows/en-US/home?category=windowsforms
    or ASP.Net forums are over here.
    http://forums.asp.net/
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • ACL-list syntax error in PIX after upgrade, need urgent help!

    Hello everyone
    We have a setup including Cisco ACS + a VPN 3005 Concentrator and a PIX 515E (7.2.4)
    We upgraded the PIX version from 7.0 to 7.2.4 and suddenly our downloadable access-list was getting refused when users authenticated against the ACS.
    When debuging radius in the PIX we found that entering this line in the downloadable access-list give error and stop the users of getting the ACL.
    "deny ip any 192.168.0.0 0.0.255.255"
    PIX refused to process their auth request when encountering this line.
    Fine we said, we changed the ACL syntax to this : deny ip any 192.168.0.0 255.255.0.0
    This made the PIX process the ACL.
    We were happy for awhile until VPN users started to complain.
    It seems that the VPN 3005 cant deal with the syntax we entered in the PIX!
    The VPN 3005 doesnt seem to be able to handle the acl line "deny ip any 192.168.0.0 255.255.0.0" !
    It can only handle "deny ip any 192.168.0.0 0.0.255.255" !
    Which the PIX cant handle..
    I'm a loss at what to do here..
    We got VPN users who cant surf now with these ACL problems.
    What can I do? Anyone else encountered this?
    We upgraded the VPN 3005 to the lastest SW version
    Really need some help here guys!
    Thanks

    I don't think Cisco ever changed anything on the PIX. It uses subnet masks from day one AFAIK and VPN Conc uses wildcard masks like IOS. You can use the acl-netmask-convert command on the ASA to fix this issue. This way you define a willdcard ACL on the ACS/AAA server and then use this command on the ASA to use the same downloadable ACL for both devices (PIX,VPNC).
    http://www.cisco.com/en/US/docs/security/asa/asa81/command/ref/a2.html#wp1622944
    Please Rate if helpful.
    Regards
    Farrukh

  • Syntax error in SAPLCRM_CONDITION_COM_OW after upgrade 7 - 7 with EhP1

    Dears,
    after upgrade I cannot go into edit mode for activities, sales orders. I get a short dump.
    I think it may be connected to FM CRM_ORDER_GET_ACTIVE_OW which returns nothing , so variable for
    lv_no_pricing is not set to X. Then when system tries to check pricing it throws error in LCRM_CONDITION_COM_OWF02, that 'CS_ACS_I_COM' does not have a component 'BASIC_TIER.
    Can you help?
    the same I get when opening document in sap gui and web ui.
    It maybe some additional configuration loaded in upgrade.
    Best Regards
    Radek

    Hi,
    These structures are usually generated. Please go to transaction
    /SAPCND/CTFC, for Application CRM regenerate all fields again.
    Go regenerate the field catalog to the following IMG menu;
    Customer Relationship Management
    -> Basic Functions
       -> Pricing
         -> Define Settings for Pricing
           -> Maintain Field Catalog
    Goto menu Field Catalog -> Generate.
    Regards,
    Aidan

  • Syntax error: Invalid CSS after "" (iphone.sass) [Wikipedia]

    Using the newest build (iOS 4.2.1) I am getting the above error for all wikipedia pages on my phone only. Can anyone confirm this?

    I too am having this problem in my iPhone. The problem seems to be localized to mobile safari as iCab Mobile has no problems displaying the mobile wiki page properly.

  • *REC Error - missing ) after argument list

    Hi all,
    Please note the following code
    *XDIM_MEMBERSET P_ACCOUNT = 50100010.FOB.FC
    *XDIM_MEMBERSET P_PCA = <ALL>
    *XDIM_MEMBERSET P_CUSTOMER = P_DUMMY
    *XDIM_MEMBERSET P_MONTH AS %DUMMY_MONTH%= 2011_DUMMY_MONTH
    *XDIM_MEMBERSET P_MONTH AS %MONTHS% = BAS(2011.TOTAL)
    *XDIM_MEMBERSET P_BUDGET_MODEL AS %BUDGET_MODELS% = BAS(2011.TOTAL)
    *XDIM_MEMBERSET P_VERSION AS %VERSION% = 10
    *LOOKUP COLMOBIL01
    *DIM P_CURR_FROM="%P_BUDGET_MODEL%.CURR_FOB"
    *DIM P_EXCH_RATE_TYPE="%P_BUDGET_MODEL%.EXCH_RATE_FOB"
    *DIM P_CURR_TO="ILS"
    *DIM P_ACCOUNT="P_DUMMY"
    *DIM P_PCA="9999999999"
    *DIM MEASURES="PERIODIC"
    *FOR %S_MONTH% = %MONTHS%
    *DIM LK_%S_MONTH%:P_MONTH="%S_MONTH%"
    *NEXT
    *ENDLOOKUP
    *WHEN P_ACCOUNT
    *IS 50100010.FOB.FC
    *FOR %S_MODEL% = %BUDGET_MODELS%
    *FOR %S_MONTH% = %MONTHS%
    *REC(EXPRESSION=%VALUE%*LOOKUP(LK_%S_MONTH%), P_ACCOUNT=50100010.FOB.ILS)
    *NEXT
    *NEXT
    *ENDWHEN
    When I validate it, I receive a message:
    LINE 0 syntax error: " missing ) after argument list"
    When I delete the *REC line, the validation is OK.
    Any idea why do I get this message?

    Hi Gersh,
    I am sorry if I have not been lear. The script passed validation. The "." is not in the name of the variable but in the values of the dimension. My Budget models IDs were YYYY.MODEL1. I have an attribute called MODEL_NOYEAR, which includes the characters to the right of the ".". When I used it and only inside the LOOKUP added the year it worked fine.
    My Time dimension has the same issue, It is defined as YYYY.MM. Again, in your last proposed script, you have cycled over a property, which only includes the period number. This gave me the idea.
    I know that the REC needs the ( without spaces. Took me one night to find this out....:(
    Now, after I have passed validation a new challenge arrived.
    Basically each Budget Model has 2 properties. One is the Exchange Rate Type and the other is the currency of purchase. The LOOKUP should be accessing another application based on the Month and the two properties of the model.
    It suddenly struck me that the script is not good since the lookup is not bringing the values.
    I have tried the following versions:
    1. Straight forward version - use the name of the propery of the calling dimension. Did not work.
    *DIM L_%SMDL%_%SMNTH%:P_CURR_FROM = P_BUDGET_MODEL.CURR_FOB
    2. Use the value of the calling dimension "." the propery name. Did not work
    *DIM L_%SMDL%_%SMNTH%:P_CURR_FROM = 2011_%SMDL%.CURR_FOB
    3. I have created a variable that should hold the value and then used it. Did not work.
    *LOOKUP COLMOBIL01
    *DIM P_CURR_TO="ILS"
    *DIM P_ACCOUNT="P_DUMMY"
    *DIM P_PCA="9999999999"
    *DIM MEASURES="PERIODIC"
    *FOR %SMDL% = %BUDGET_MODELS%
    *FOR %SMNTH% = %MONTHS%
    *DIM L_%SMDL%_%SMNTH%:P_CURR_FROM = %CF%
    *DIM L_%SMDL%_%SMNTH%:P_EXCH_RATE_TYPE = %ERF%
    *DIM L_%SMDL%_%SMNTH%:P_MONTH="%BY%.%SMNTH%"
    *NEXT
    *NEXT
    *ENDLOOKUP
    *WHEN P_ACCOUNT
    *IS 50100010.FOB.FC
    *FOR %SMDL% = %BUDGET_MODELS%
    *FOR %SMNTH% = %MONTHS%
    *SELECT(%CF%, CURR_FOB, P_BUDGET_MODEL, "ID = 2011_%SMDL%")
    *SELECT(%ERF%, EXCH_RATE_FOB, P_BUDGET_MODEL, "ID = 2011_%SMDL%")
    *BEGIN
    *REC(EXPRESSION=%VALUE%*LOOKUP(L_%SMDL%_%SMNTH%), P_ACCOUNT=50100010.FOB.ILS)
    *END
    *NEXT
    *NEXT
    *ENDWHEN
    I can not escape the feeling that somehow I do not understand the way the BPC is handling the data and how and when it calculates variables and defines them.
    Any idea how do I perform the lookup based on the property values?
    Thanks,
    Avihay

  • 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?
    >

  • 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?
    >

Maybe you are looking for

  • I would like to add a new Canon camera profile to the RAW interface

    Hi,  I would like to add a new Canon camera profile to the RAW interface. I have recently installed the new camera profile 'Studio Portrait' which i download from here: http://www.canon.co.jp/imaging/picturestyle/file/studio-portrait.html When I open

  • Once and for all.....Is Fireworks being dropped in CS6??

    Rumours surrounding the life of Fireworks have been flying around ever since Abode acquired Macromedia, since then the smart ones have realised this was never going to happen and continued to use and push the product further. Recently this rumour app

  • Automatic mailing to vendor

    Hi all, Reg: Automatic mail has to sent to the vendor. After the vendor code is created at that time itself the mail has to send to the Mail ID which is specified in the vendor master with the code and general details. Regards gvr

  • Storage Space - Inaccessible, reconnect drives

    Hi My 2 HDD Mirror Storage Space is no longer accessible. I cannot see it in explorer, and under Storage Space Manager it says Inaccessible, Reconnect drives. Both disks under Physical Disks are displaying as OK, so I'm really scratching my head. The

  • Error when creating JSP

    Hi all, I have an error when run BI BEAN in an jsp with code as following: <%@ taglib uri="http://xmlns.oracle.com/bibeans/jsp" prefix="orabi" %> <%@ page import="oracle.dss.addins.jspTags.BIThinSession,oracle.dss.dataSource.common.Query,oracle.dss.d