Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Error Help

    There is a drop down list box on my site where you select the option you want
    then click go only when you click go I get this...???

    Microsoft OLE DB Provider for ODBC Drivers error '80040e10'

    [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.

    /srch_weave_result.asp, line 63


    tb5821 Guest

  2. Similar Questions and Discussions

    1. Error Message "A drawing error ocurrred which is probably due to an out-of-memory condition. Try qu
      I am running Acrobat Reader 5.0 on a Mac Powerbook running OS 9.2 and keep getting "A drawing error occurred which is probably due to an out of...
    2. Error 403 Failed to read heders Error for long-runningCFMAIL and CFINDEX command
      I have two different pages with long-running scripts on which I am recieving the following error: Error - 403 Failed to read headers to server:...
    3. Error Creating Control: Parser Error DocHeader does not have a property named 'cc3:MyItems'
      I am having problems getting this webcontrol working properly. Everything else works fine except having items. So here is the low-down on the...
    4. Unexpected error. A trappable error (C0000005) occurred in an external object.
      Hi Elvin, After doing some reseaarch on this problem, I found there is a lot of issues which may cause the problem, for example, incorrect access...
    5. An error occurred while try to load the string resources (GetModuleHandle failed with error -2147023888)
      Hello, on one of our customers servers we get following error on first ASPX-page: An error occurred while try to load the string resources...
  3. #2

    Default Error help

    i am new to cold fusion, and using dreamweaver to help me make my site. I have
    created a login form, and have now just created a register form. The register
    form just inserts a record into my database which is access. But when i load
    the page and get an error:

    Error Executing Database Query.
    Syntax error in INSERT INTO statement.

    The error occurred in C:\CFusionMX7\wwwroot\marks\register.cfm: line 21

    19 : <cfelse>
    20 : NULL
    21 : </cfif>
    22 : )
    23 : </cfquery>

    The line it refers to is the last cfif tag, anyone know what the problem is?
    Thanks for any help

    mab_bellamy@yahoo.co.uk Guest

  4. #3

    Default Re: Error help

    Please post the entire CFQUERY statement.
    jdeline Guest

  5. #4

    Default Re: Error help

    <cfset CurrentPage=GetFileFromPath(GetTemplatePath())>
    <cfif IsDefined("FORM.MM_InsertRecord") AND FORM.MM_InsertRecord EQ "form1">
    <cfquery datasource="marks">
    INSERT INTO Customers (Username, Password, EmailAddress) VALUES (
    <cfif IsDefined("FORM.username") AND #FORM.username# NEQ "">
    '#FORM.username#'
    <cfelse>
    NULL
    </cfif>
    ,
    <cfif IsDefined("FORM.password") AND #FORM.password# NEQ "">
    '#FORM.password#'
    <cfelse>
    NULL
    </cfif>
    ,
    <cfif IsDefined("FORM.email") AND #FORM.email# NEQ "">
    '#FORM.email#'
    <cfelse>
    NULL
    </cfif>
    )
    </cfquery>
    <cflocation url="index.cfm">
    </cfif>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <style type="text/css">
    <!--
    .style1 {
    color: #000000;
    font-weight: bold;
    font-size: 16px;
    }
    -->
    </style>
    </head>
    <body>

    <div align="center" class="style1">
    <p>Register</p>
    <form action="<cfoutput>#CurrentPage#</cfoutput>" name="form1" method="POST">
    <p>Username:
    <input name="username" type="text" id="username">
    </p>
    <p>Password:
    <input name="password" type="password" id="password">
    </p>
    <p>FirstName:
    <input name="first_name" type="text" id="first_name">
    </p>
    <p>Surname:
    <input name="surname" type="text" id="surname">
    </p>
    <p>E-mail:
    <input name="email" type="text" id="email">
    </p>
    <p>
    <input type="submit" name="Submit" value="Submit">
    </p>
    <p>&nbsp;</p>
    <input type="hidden" name="MM_InsertRecord" value="form1">
    </form>
    <p>&nbsp;</p>
    </div>
    </body>
    </html>


    mab_bellamy@yahoo.co.uk Guest

  6. #5

    Default Re: Error help

    "Password" may be reserved word in your database. Try changing the column name
    to say "UserPassword" or putting square brackets around the column name in the
    INSERT

    INSERT INTO Customers (Username, [Password], EmailAddress) .....

    mxstu Guest

  7. #6

    Default Re: Error help

    there is no error with that, if you read the error above, it shows that the error is with the lsy cfif tag for some strange reason. Anyone any ideas?
    mab_bellamy@yahoo.co.uk Guest

  8. #7

    Default Re: Error help

    Did you try it? There does not appear to be anything wrong with the syntax and
    that is the error message you would see if your were using the unicode access
    driver. "Password" is a reserved word using that driver.

    mxstu Guest

  9. #8

    Default Re: Error help

    thanks, that was correct, just changed the password to user.password and yip pee it worked fine. Thanks m8t
    mab_bellamy@yahoo.co.uk Guest

  10. #9

    Default Re: Error help

    wait, if i submit the form i get the same error again
    mab_bellamy@yahoo.co.uk Guest

  11. #10

    Default Re: Error help

    You're still referencing the "Password" column. You need to change that.
    mxstu Guest

  12. #11

    Default Re: Error help

    nope, changed everything to userpassword. Could this be something to do with access unicode? how can i install an access database with out this unicode as when i try it fails!
    mab_bellamy@yahoo.co.uk Guest

  13. #12

    Default Re: Error help

    Well looking at the error message, it wasn't changed. Are you sure you saved
    your changes?

    SQL INSERT INTO Customers (Username, Password, EmailAddress) VALUES ( 'test' ,
    'test' , 'test@test.com' )
    DATASOURCE marks
    VENDORERRORCODE 3092
    SQLSTATE &nbsp;


    mxstu Guest

  14. #13

    Default Re: Error help

    LOL, am an idiot lol. Yer u were correct, i put brackets round and it worked strait away. Well soz for waisting you time again, lol. Thanks any ways.
    (i will be back again)
    mab_bellamy@yahoo.co.uk Guest

  15. #14

    Default Re: Error help

    No problem. We all have those days ;-)
    mxstu Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139