ADO Connection Error

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default ADO Connection Error

    Can anyone give me an idea why this isn't working?

    strMDBpath = "dmiscal.mdb"
    oConn.open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & strMDBPath


    the error is:

    ADODB.Connection.1 error '800a0bb9'
    The application is using arguments that are of the wrong type, are out of
    acceptable range, or are in conflict with one another.



    Thanks!



    Matt




    MattG Guest

  2. Similar Questions and Discussions

    1. connection error!! please help
      Hello. Can somebody please help me with "connection error" from a remote pc? Streaming LIVE from my webcam to my website. When I enter the website...
    2. DB2 Connection Error
      I keep getting the following error: Event Type: Error Event Source: ColdFusion MX 7 ODBC Server Event Category: None Event ID: 0...
    3. SQL Connection 405 error - HELP
      please let me know if you find out,,, lars67@direcway.com
    4. Error when calling a web service (The underlying connection was closed: An unexpected error occurred on a receive.)
      I am calling a simple service. Always on the first call I have this error (System.Net.WebException: The underlying connection was closed: An...
    5. Error 711 and Error 5, Remote access connection manager service
      I'm trying to set up a dial-up connection, but my computer will not start Remote Access Connection Manager or Remote Access Auto Connection...
  3. #2

    Default Re: ADO Connection Error

    MattG wrote:
    > Can anyone give me an idea why this isn't working?
    >
    > strMDBpath = "dmiscal.mdb"
    > oConn.open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" &
    > strMDBPath
    It's got nothing to do with your error, but you should use the native Jet
    OLEDB provider instead of the obsolete ODBC driver:

    oConn.open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _
    strMDBPath
    >
    >
    > the error is:
    >
    > ADODB.Connection.1 error '800a0bb9'
    > The application is using arguments that are of the wrong type, are
    > out of acceptable range, or are in conflict with one another.
    >
    I suspect the error is not being caused by this line of code. You must have
    a later line of code that uses one of the ADO constants (asOpenStatic,
    adUseClient, etc.) and you have failed to include the definitions of those
    constants in your page. The best way to do this is described here:
    [url]http://www.aspfaq.com/show.asp?id=2112[/url]

    --
    HTH,
    Bob Barrows - Microsoft MVP -- ASP/ASP.NET
    Please reply to the newsgroup. The email account listed in my From
    header is my spam trap, so I don't check it very often. You will get a
    quicker response by posting to the newsgroup.


    Bob Barrows Guest

  4. #3

    Default Re: ADO Connection Error

    "MattG" <remove.msg@standardpub.com> wrote in message
    news:uNwPceLlDHA.2328@TK2MSFTNGP10.phx.gbl...
    > Can anyone give me an idea why this isn't working?
    >
    > strMDBpath = "dmiscal.mdb"
    > oConn.open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & strMDBPath
    >
    >
    > the error is:
    >
    > ADODB.Connection.1 error '800a0bb9'
    > The application is using arguments that are of the wrong type, are out of
    > acceptable range, or are in conflict with one another.
    [url]http://www.aspfaq.com/show.asp?id=2102[/url]

    --
    Tom Kaminski IIS MVP
    [url]http://www.iistoolshed.com/[/url] - tools, scripts, and utilities for running IIS
    [url]http://mvp.support.microsoft.com/[/url]
    [url]http://www.microsoft.com/windowsserver2003/community/centers/iis/[/url]



    Tom Kaminski [MVP] Guest

  5. #4

    Default Re: ADO Connection Error

    "MattG" <remove.msg@standardpub.com> wrote in message
    news:uNwPceLlDHA.2328@TK2MSFTNGP10.phx.gbl...
    > Can anyone give me an idea why this isn't working?
    >
    > strMDBpath = "dmiscal.mdb"
    > oConn.open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & strMDBPath
    You need to provide a proper path. If dmiscal.mdb is in the same folder as
    the ASP page, you can say:

    cst = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
    "Data Source=" & server.mappath("dmiscal.mdb")
    oConn.open cst
    > ADODB.Connection.1 error '800a0bb9'
    > The application is using arguments that are of the wrong type, are out of
    > acceptable range, or are in conflict with one another.
    I'm guessing you will still get this error message, but it's probably
    happening on a different line...


    Aaron Bertrand - MVP 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