[help!] Syntax error, insert "AssignmentOperator ArrayInitializer"...

<%
  String USERNAME = (String)session.getAttribute("USERNAME");
    String myBlogUrl;
     if (USERNAME==null){                    
              session.setAttribute("loginStatus","Not Logged In");//status: user NOT logged in              
              myBlogUrl = "loginFail.jsp";
       esle {
             myBlogUrl = "blog.jsp?username="+USERNAME;
    %>
    <ul>
      <li><a href="<%=myBlogUrl%>">My Blog</a></li>
...(navbar.jsp)
1. I include masthead.jsp and navbar.jsp in a few other .jsp files using:
<%@ include file="include/navbar.jsp" %>2. USERNAME is also declared in masthead.jsp:
String USERNAME = (String)session.getAttribute("USERNAME");
Tomcat gives an exception message as follows:
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 11 in the jsp file: /include/navbar.jsp
Generated servlet error:
Syntax error, insert ";" to complete Statement
An error occurred at line: 11 in the jsp file: /include/navbar.jsp
Generated servlet error:
Syntax error, insert[b] "AssignmentOperator ArrayInitializer" to complete ArrayInitializerAssignement
3. I guesses there might be the problem with String USERNAME = (String)session.getAttribute("USERNAME");, so I deleted from navbar.jsp, but the problem still exists.
So, this means there is some syntax problem with the statements in navbar.jsp? how can I solve the problem?

Can't see anything wrong in the code you have posted.
Error: AssignmentOperator ArrayInitializer
The error message would lead me to look for any arrays you are declaring in your code. Are you declaring an array? Are you trying to initialize it? Have you closed all quotes/brackets etc etc?

Similar Messages

  • 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • "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 error, insert "}" to complete Class body.

    Hello everyone,
    I am trying to create simple Adobe form with WebDynpro for java. Java error in autogenerated class appears "Syntax error, insert "}" to complete Class body". As I see, java class really corrupted - there are no "}" at the class end.
    Really appreciate any help.
    Kirill

    It dissappeared.

  • Syntax error, insert ";" to complete LocalVariableDeclarationStatement

    I'm fairly new at JSP, and am trying to convert an ASP site to JSP.
    On most of my pages I get an error:
    An error occurred at line: 1 in the jsp file: /sheep.jsp
    Generated servlet error:
    Syntax error, insert ";" to complete LocalVariableDeclarationStatement
    An error occurred at line: 1 in the jsp file: /sheep.jsp
    Generated servlet error:
    Syntax error, insert ")" to complete MethodInvocation
    But the only thing on line 1 is <%

    Check the block of code between <% and %>
    Look for any semicolons you missed.
    Look for any brackets you missed closing.
    It might not be on line 1, but it will probably be in that area.

  • Help Syntax Error!!! in Forms 9i runtime

    Hi all Im trying to run my forms 9i but im getting Message "Syntax Error Page cannot be displayed"
    Everything was fine until i run a procedure that must have shut down the iAS.
    When I remove the http://%%20 in the url it works fine. Ive aloso done the following
    Set the Application URL and Webbrowser Location in Forms Developer under Edit->Preferences->Runtime.
    Application URL: http://<machine>:8888/forms90/f90servlet
    Webbrowserlocation: <path_to>\iexplore.exe
    this works however when I copy the url into a different browser window, it does not invoke the applet and leaves the server runing without oppening the form.
    What can i do?

    Hi thanks for ure help, the problem is that when i copy the whole url (the very long one eg http://home:8888/forms90/f90servlet?form=C:\OracleProject\hire.fmx&userid=xxx/yyyy@localhost&buffer_records=NO&debug_messages=NO&array=YES&query_only=NO&quiet=NO&RENDER=YES&debug=YES&HOST=home&PORT=4642")from forms runtime and paste it into another browser, it doesnt work, therefore i cant create a link in my webpage to the forms runtime.
    I used http://<machine>:8888/forms90/f90servletto solve the initial syntax error which was presenting my original error "page canot be displayed Invealid sysntax error".

  • OLEDB Syntax error INSERT INTO in DAL

    hi guys im having problems with my DAL in my school project
    before im starting new one maybe you can help me
    using
    System;
    using
    System.Collections.Generic;
    using
    System.Linq;
    using
    System.Web;
    using
    System.Data;
    using
    System.Data.OleDb;
    public
    class
    DAL
    private
    string dbPath;
    private
    OleDbConnection conn;
    private
    OleDbCommand command;
    private
    OleDbDataAdapter adpter;
    private
    string strQuery;
    public DAL(string
    dbPath)
    this.dbPath = dbPath;
    string ConnectionString =
    string.Format(@"Provider=Microsoft.ACE.OLEDB.12.0;Data
    Source={0}", dbPath);
            conn =
    new
    OleDbConnection(ConnectionString);
            command =
    new
    OleDbCommand(strQuery, conn);
            adpter =
    new
    OleDbDataAdapter(command);
    public
    DataSet GetDataSet(string
    strSql)
    DataSet ds =
    new
    DataSet();
            command.CommandText = strSql;
            adpter.SelectCommand = command;
            adpter.Fill(ds);
    return (ds);
    public
    void SetDataSet(DataSet
    ds)
    OleDbCommandBuilder builder =
    new
    OleDbCommandBuilder(adpter);
            adpter.InsertCommand = builder.GetInsertCommand();
            conn.Open();
            adpter.Update(ds);
            conn.Close();
    public
    bool InsertRow(string
    sqlInsert)
    int rowsEffected;
            command.CommandText = sqlInsert;
            conn.Open();
            rowsEffected = command.ExecuteNonQuery(); // -------> the problem is here <--------
            conn.Close();
    return (rowsEffected > 0);

    Hi
    tzaxcu,
    Did you get some error information? Could you please post more information here?
    Best wishes!
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Syntax Error - AssignmentOperator ArrayInitializer

    Hi All,
    For the following statement -
    (m_querySection.isExpanded()?(m_sashWeights[0] = 15) : (m_sashWeights[0] = 20));I am getting the error - Syntax error, insert "AssignmentOperator ArrayInitializer" to complete Expression
    The return type for the method isExpanded() is boolean.
    Please suggest me where am I going wrong?
    Thanks in advance.
    Regards,
    Ashish A.

    That construct is supposed to be an expression, not a statement. Perhaps you meant(m_querySection.isExpanded()?(m_sashWeights[0] == 15) : (m_sashWeights[0] == 20));but I suspect not as you aren't assigning the result to anything. If you are really in love with that ternary operator then you could save it by doing this:m_sashWeights[0] = (m_querySection.isExpanded() ? 15 : 20);

  • "AssignmentOperator ArrayInitializer" to complete ForInit - JSP

    The following JSP page produced an error when I tried to access it thru an html form.
    I am running Tomcat as my servlet engine\ web server.
    err msg:
    Generated servlet error:
    Syntax error, insert "AssignmentOperator ArrayInitializer" to complete ForInit
    from the following code:
    <%@ page import="java.sql.*" language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    </head>
    <jsp:useBean id="emp" class="company.beans.EmployeeBean" scope="session">
    <jsp:setProperty name="emp" property="lastname"/>
    </jsp:useBean>
    <body>
    <%
    company.util.DBConnect dbcon = new company.util.DBConnect();  //DBConnect class for connection to mySQL
    java.util.ArrayList al = dbcon.getEmployee(emp); //retrieve ArrayList of Employees with queried lastname
    int counter = 0;
    for (counter ; counter<al.size(); counter ++){
         out.println(al[counter].getEmployeeID());
         out.println(al[counter].getFirstNmae());
         out.println(al[counter].getLastName());
         out.println(al[counter].getRole());
    %>
    </body>
    </html>I can't figure out what went wrong.

    Syntax error, insert "AssignmentOperator ArrayInitializer" to complete ForInitYou have a syntax error. You must insert an Assignment Operator or Array Initializer to complete the For loop initialization.
    A for loop definition must contain 3 parts
    for([initialization] ; [loop continuation condition] ; [increment action])
    You are using
    for( counter ; counter < al.size() ; counter ++)
    Which contains
    for( [variable reference] ; [loop continuation condition] ; [increment action])
    Can you tell how to fix the problem now?
    Well, the real fix to not use scriptlets. The code I would use would look something like this:
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    </head>
    <jsp:useBean id="emp" class="company.beans.EmployeeBean" scope="session">
        <jsp:setProperty name="emp" property="lastname"/>
    </jsp:useBean>
    <jsp:useBean id="dbConnector" class="company.util.DBConnect(); scope="page">
        <jsp:setProperty name="dbConnector" property="employeeLastName" value="${emp}"/>
        <c:set var="employees" value="${dbConnector.employee}"/>
    </jsp:useBean>
    <body>
        <c:forEach var="employee" items="employees">
            <c:out value="${employee.employeeID}"/><br/>
            <c:out value="${employee.firstName}"/><br/>
            <c:out value="${employee.lastName}"/><br/>
            <c:out value="${employee.role}"/><br/>
        </c:forEach>
    </body>
    </html>
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Syntax error in INSERT STATEMENT

    A problem on the date part of the query but why I don´t
    know, Thanks for any pointers,
    TIA
    <cfquery name="update1" datasource="trevor_SecurityDB">
    INSERT INTO imagesproducts
    (title, info, date)
    VALUES ( '#form.title#', '#form.info#', '#DateFormat(Now())#'
    </cfquery>
    Error Occurred While Processing Request
    Error Executing Database Query.
    [Macromedia][SequeLink JDBC Driver][ODBC
    Socket][Microsoft][ODBC Microsoft Access Driver] Syntax error in
    INSERT INTO statement.
    The error occurred in uploadmember.cfm: line 28
    26 : INSERT INTO imagesproducts
    27 : (title, info, date)
    28 : VALUES ( '#form.title#', '#form.info#',
    '#DateFormat(Now())#' )
    29 : </cfquery>
    30 :
    SQL INSERT INTO imagesproducts (title, info, date) VALUES (
    'News test', 'Testing news info', '12-Jul-07' )
    DATASOURCE trevor_SecurityDB
    VENDORERRORCODE -3502
    SQLSTATE 42000

    Perhaps it is a reserved word issue with the date column,
    since
    date is an ODBC Reserved Keyword. You might try enclosing it
    within brackets [ ].
    <cfquery name="update1" datasource="trevor_SecurityDB">
    INSERT INTO imagesproducts
    (title, info, [date])
    VALUES ( '#form.title#', '#form.info#', '#DateFormat(Now())#'
    </cfquery>
    Or, if that doesn't help, you might try using a cfqueryparam
    tag for the '#DateFormat(Now())#' value using a cfsqltype =
    "CF_SQL_TIMESTAMP" (assuming a date/time datatype on the column).
    Also, you might look into using one of the CreateODBCDateTime() or
    CreateODBCDate() functions.
    Phil

  • Getting syntax error when i using INSERT command

    Hi,
    i am using MS Access DB. Table name is "Timesheet". the table has the following Fields,
    uname - Text
    date - Text
    intime - Text
    outtime - Text
    duration - Text
    desc - Text
    i am using preparedStatment,
    String accessDBURLPrefix = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=";
    String accessDBURLSuffix = ";DriverID=22;READONLY=false}";
    String filename="D:\\TimeSheet\\TimeDB.mdb"
    String databaseURL = accessDBURLPrefix + filename + accessDBURLSuffix;
    Connection con = DriverManager.getConnection(databaseURL);
    PreparedStatment st = con.prepareStatement("INSERT INTO (uname, date, intime) TimeSheet VALUES (?,?,?)");
    st.setString(1,user);
    st.setString(2,date);
    st.setString(3,intime);
    st.executeUpdate();
    }if i am going to compile this code i will get SQLException
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement.
         at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958)
         at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115)
         at sun.jdbc.odbc.JdbcOdbc.SQLExecute(JdbcOdbc.java:3150)
         at sun.jdbc.odbc.JdbcOdbcPreparedStatement.execute(JdbcOdbcPreparedStatement.java:214)
         at sun.jdbc.odbc.JdbcOdbcPreparedStatement.executeUpdate(JdbcOdbcPreparedStatement.java:136)
         at TimeSheetDemo.writeToDB(TimeSheetDemo.java:84)
         at TimeSheetDemo.main(TimeSheetDemo.java:37)
    Really i have tired to figure out this problem. please help me anyone.
    thank you

    Thank you. it was my careless mistake. i changed that mistake. but still it is not working, get same exception.
    st = con.prepareStatement("INSERT INTO  TimeSheet (uname, date, intime) VALUES (?,?,?)");suppose, if i will give values for all fields, it will work fine, example
    st = con.prepareStatement("INSERT INTO  TimeSheet  VALUES (?,?,?,?,?,?)");
    st.setString(1,user);
    st.setString(2,date);
    st.setString(3,intime);
    st.setString(4,outtime);
    st.setString(5,duration);
    st.setString(6,descrip);
    st.executeUpdate();But my problem is i want to insert the values for only 3 fields.
    give me the solution for inserting values for specified fields

  • Inserting Flash Video - Syntax Error

    Hello,
    I used the Insert menu to add a flash video file to my page. There is some kinf of syntax error on this line:
    swfobject.registerObject("FLVPlayer");
    I am validating for HTML4.
    The video plays in preview, but not when uplaoded. Any ideas?
    Mike

    I am so embarassed. The problem? my extension was .FLV, not .flv. I changed the case and everythng works now. I had no idea that extensions are case-sensitive.
    Thanks so much for all your help. Like I said, I am embarassed and apologize that I wasted your time.
    But I do wonder why case didn't matter when previewing. Could that be a domain server setting?
    Mike

  • Error 8: Syntax Error?  Please Help!!!

    ~What im trying to do~
    > Make a simple animated wallpaper gif for my webpage
    Ok, i'll just go step-by-step on what i did to get this error, hopefully someone can help.
    1) First off, i have Photoshop CS3 Extended for Windows XP
    2)All i did was go to File> Scripts > Browse
    3)Then i try load a quicktime clip
    4)I get an error that reads *Error 8: Syntax Error, Line 1*
    This happens whenever i load a quicktime sequence, and it just started recently. Usually id be able to load up one no problem.

    ~What im trying to do~
    > Make a simple animated wallpaper gif for my webpage
    Ok, i'll just go step-by-step on what i did to get this error, hopefully someone can help.
    1) First off, i have Photoshop CS3 Extended for Windows XP
    2)All i did was go to File> Scripts > Browse
    3)Then i try load a quicktime clip
    4)I get an error that reads *Error 8: Syntax Error, Line 1*
    This happens whenever i load a quicktime sequence, and it just started recently. Usually id be able to load up one no problem.

  • Where is the syntax error in my Insert statement?

    It says that there is a syntax error in my insert statement, pointing to the .ExecuteNonQuery() at the end:
    'Defining the activity ID from the datatable
    Dim ActivityID As Integer = DataTableActivities.Rows(0).Item(0)
    'Defining the calories from the datatable
    Dim calories As Decimal = (DataTableActivities.Rows(0).Item(3)) * (DurationNum.Value / 60)
    'Insert statement to add new training events
    Dim SqlQueryActivityInsert As String = "INSERT INTO tblTraining (RunnerID, ActivityID, Full_Name, Time, Calories_Burnt, Date) VALUES (@RunnerID, @ActivityID, @Full_Name, @Time, @Calories, @Date)"
    Dim SqlCommandActivity As New OleDbCommand
    With SqlCommandActivity
    .CommandText = SqlQueryActivityInsert
    .Parameters.AddWithValue("@RunnerID", LoginForm.UserIDlbl.Text)
    .Parameters.AddWithValue("@ActivityID", ActivityID)
    .Parameters.AddWithValue("@Full_Name", LoginForm.Full_Namelbl.Text)
    .Parameters.AddWithValue("@Time", DurationNum.Value)
    .Parameters.AddWithValue("@Calories", calories)
    .Parameters.AddWithValue("@Date", WeekPicker.Value)
    .Connection = conn
    .ExecuteNonQuery()

    Viorel is right.  The 'Date' field is probably throwing it off.  Date is a reserved word. 
    https://www.drupal.org/node/141051
    Putting square brackets [] around the field name should get it working for you.
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

  • Syntax error in insert query

    I have a flash form that is used to inserts a record into an
    Access database table. In the for there are 4 datefields, several
    text input fields, and several select fields. When I submit the
    form, I get a syntax error that reads:
    Executing Database Query. [Macromedia][SequeLink JDBC
    Driver][ODBC Socket][Microsoft][ODBC Microsoft Access Driver]
    Syntax error in INSERT INTO statement.
    The error occurred on line 184. Complex object types cannot
    be converted to simple values.
    Line 184 is the last line of the Values in the insert query.
    The query looks like this:
    <CFQUERY DATASOURCE="#REQUEST.DataSource#">
    INSERT INTO EstimateNumber(
    BidNumber,
    Project,
    JobSite,
    EstimatedBy,
    Region,
    Company,
    Division,
    InquiryNumber,
    SafetyChecklist,
    SafetyChecklistDate,
    QCChecklist,
    QCChecklistDate,
    EstimatedValue,
    UserUsername,
    UserPassword,
    Updated,
    ReviewDate,
    ReviewedBy,
    Discipline,
    BidDate,
    JobNumber,
    UpdatedBy
    VALUES(
    #FORM.BidNumber#,
    '#FORM.Project#',
    '#FORM.JobSite#',
    '#FORM.EstimatedBy#',
    #FORM.Region#,
    #FORM.Company#,
    #FORM.Division#,
    '#FORM.InquiryNumber#',
    #FORM.SafetyChecklist#,
    #FORM.SafetyChecklistDate#,
    #FORM.QCChecklist#,
    '#FORM.QCChecklistDate#',
    #FORM.EstimatedValue#,
    '#FORM.UserUsername#',
    '#FORM.UserPassword#',
    #FORM.Updated#,
    #FORM.ReviewDate#,
    #FORM.ReviewedBy#,
    #FORM.Discipline#,
    #FORM.BidDate#,
    #FORM.JobNumber#,
    '#FORM.UpdatedBy#'
    </CFQUERY>
    Any recomendations?

    Date/Time in Access provide some pretty strage hurdles. In
    many occassions I have simply changed the field to a Text field and
    ran with that and never seemed to have problems with the result. I
    didn't like doing it but I never received errors. I have been
    receiving some parameter errors with <cfqueryparam> like the
    database doesn't recognized the preceding declared field in the
    update or insert query. Here is an example of a wierd error with
    Access. I have 2 tables. One is for estimate numbers and the other
    is for sub estimate numbers that can be assigned to specific
    estimate numbers. If is actually a complicated explanation about
    what is taking place behind the doors on this. The concept is
    simple on the surface. Both tables have the same fields except the
    subestimate table has 1 extra for a user defined subestimate
    number. The only relation between the two will be the estimate
    number. This insert works fine.
    INSERT INTO EstimateNumber(
    BidNumber,
    Project,
    JobSite,
    EstimatedBy,
    Region,
    Company,
    Division,
    InquiryNumber,
    SafetyChecklist,
    SafetyChecklistDate,
    QCChecklist,
    QCChecklistDate,
    EstimatedValue,
    UserUsername,
    UserPassword,
    ReviewDate,
    Discipline,
    BidDate,
    JobNumber,
    UpdatedBy
    VALUES(
    #FORM.BidNumber#,
    '#FORM.Project#',
    '#FORM.JobSite#',
    '#FORM.EstimatedBy#',
    #FORM.Region#,
    #FORM.Company#,
    #FORM.Division#,
    '#FORM.InquiryNumber#',
    #FORM.SafetyChecklist#,
    <cfqueryparam
    value="#FORM.SafetyChecklistDate#"
    cfsqltype="CF_SQL_DATE "
    maxlength="50"
    >,
    #FORM.QCChecklist#,
    <cfqueryparam
    value="#FORM.QCChecklistDate#"
    cfsqltype="CF_SQL_DATE "
    maxlength="50"
    >,
    #FORM.EstimatedValue#,
    '#FORM.UserUsername#',
    '#FORM.UserPassword#',
    <cfqueryparam
    value="#FORM.ReviewDate#"
    cfsqltype="CF_SQL_DATE "
    maxlength="50"
    >,
    #FORM.Discipline#,
    <cfqueryparam
    value="#FORM.BidDate#"
    cfsqltype="CF_SQL_DATE "
    maxlength="50"
    >,
    #FORM.JobNumber#,
    '#FORM.UpdatedBy#'
    This next one is the same exact query with the same table
    setup with one added field but kicks back a parmeter error
    expecting 4. I can't explain it.
    INSERT INTO SubEstimate(SubBidNumber,
    BidNumber,
    Project,
    JobSite,
    EstimatedBy,
    Region,
    Company,
    Division,
    InquiryNumber,
    SafetyChecklist,
    SafetyChecklistDate,
    QCChecklist,
    QCChecklistDate,
    EstimatedValue,
    UserUsername,
    UserPassword,
    ReviewDate,
    Discipline,
    BidDate,
    JobNumber,
    UpdatedBy
    VALUES(#FORM.SubBidNumber#,
    #FORM.BidNumber#,
    '#FORM.Project#',
    '#FORM.JobSite#',
    '#FORM.EstimatedBy#',
    #FORM.Region#,
    #FORM.Company#,
    #FORM.Division#,
    '#FORM.InquiryNumber#',
    #FORM.SafetyChecklist#,
    <cfqueryparam
    value="#FORM.SafetyChecklistDate#"
    cfsqltype="CF_SQL_DATE "
    maxlength="50"
    >,
    #FORM.QCChecklist#,
    <cfqueryparam
    value="#FORM.QCChecklistDate#"
    cfsqltype="CF_SQL_DATE "
    maxlength="50"
    >,
    #FORM.EstimatedValue#,
    '#FORM.UserUsername#',
    '#FORM.UserPassword#',
    <cfqueryparam
    value="#FORM.ReviewDate#"
    cfsqltype="CF_SQL_DATE "
    maxlength="50"
    >,
    #FORM.Discipline#,
    <cfqueryparam
    value="#FORM.BidDate#"
    cfsqltype="CF_SQL_DATE "
    maxlength="50"
    >,
    #FORM.JobNumber#,
    '#FORM.UpdatedBy#'
    IF I get rid of the cfqueryparam fields it works. If I simply
    remove the param, I get a Syntax error. Needless to say I commented
    this query for the sake of sanity for the time being.

Maybe you are looking for

  • Steps to boot system

    I want complete steps to backup my os x volume ,boot snow leopard DVD and repartitioning & reformat my macintosh disk.

  • Share Data between Pro and Designer Form

    Good evening, Old Form: I recently inherited an adobe pro form created a few years ago. The naming conventions are horrible, and they refuse to replace the form to spit out an xml file. But they want the data to fill into an access database. New Form

  • Mass transaction to revoke status of process orders

    Hello, We need to reopen about 1000 process orders to run a GRIR clearing which is a backlog from former years. Does anybody know a mass transaction to revoke the status of the process orders other than using the individual transaction COR2? Since we

  • After update, I can't access my photos

    I am running on OS X Yosemite Version 10.10.3 After running an update on my Mac desktop yesterday, my iPhoto icon was replaced with the Photos icon. When I tried to access my photos, I got a message that said "There is not enough disk space to migrat

  • Reset iTunes account password but not accepted

    I have an iTunes account in the UK and in Australia. Someone gave me a ITunes gift card a year or so ago which I put into my account and spent some of. When I go to iTunes, log into the Australian store, it does not recognise my name/password combina