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

  1. #1

    Default Errors in ASP Code

    Ive cleaned the code up a wee bit to see if it makes it easier to spot were i've went wrong. Hope this helps, thanks agai
    Sea
    <
    Option Explicit
    Dim sDat
    sDate = Request.Form("ReportByPubClass2"
    dim dbcn, dbrs, byclassnopric
    Set dbcn = server.CreateObject("ADODB.Connection"
    set dbrs = server.CreateObject("ADODB.Recordset"
    Set byclassnoprice = server.CreateObject("ADODB.Command"
    dbcn.open Application ("connectionString"
    byclassnoprice.ActiveConnection = dbc
    byclassnoprice.CommandType = adCmdStoredPro
    byclassnoprice.CommandText = "ByClassPUBCLASS

    Dim objParam,adDat
    set objParam = byclassnoprice.CreateParamete
    objParam.Name = "@t_week_end_date
    objParam.Type = adDat
    objParam.Direction = adParamInpu
    objParam.Value = t_week_end_date.Tex
    byclassnoprice.Parameters.Append objPara

    dbrs = byclasspubclass.Execute

    dim sHTM
    if rs.eof the
    response.write "No records were returned
    els
    Response.Write "<table border=1><tr><td>
    sHTML=rs.GetString(2,,"</td><td>",
    "</td></tr><tr><td>", "NA"
    sHTML = Left(sHTML, len(sHTML) - 8
    response.Write sHTM
    response.write "</table>
    End i
    dbrs.Close: set dbrs = nothin
    dbcn.close: set dbcn = nothin
    %><form name="accounting" method="post" action="testing.asp"><%sDate%><p>Please Enter a Weekending Date
    <input type="text" name="t_week_end_date"></p><p><input type="submit" name="ReportByPubClass2" value="View Report"></p></form
    Errors:
    Microsoft VBScript runtime error '800a01f4'
    Variable is undefined: 'adCmdStoredProc'
    /testing.asp, line 23

    ADODB.Parameter error '800a0bb9'
    Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
    /testing.asp, line 30

    Sean Guest

  2. Similar Questions and Discussions

    1. Why doesn't the Code Completion occur in FlexBuilder IDEwhen source code is in an external file?
      I am seperating my .as from the MXML by using the following in my file.mxml: <mx:Script source="file.as"> When I edit file.as, the code...
    2. CF4.5 Errors in logs and Unix 111 errors!
      :confused; Hi All, I have been getting a lot of Unix 111 errors and there are various errors in my coldfusion logs. I can't find any resources...
    3. Silent death - code stops processing but I get no errors
      I've had buffer problems before where a script dies silently but no error message ever reaches my screen, because of buffering issues. Perhaps that...
    4. supress errors at the page level? Undefined index errors.
      I'm creating a simple reply form, and if a form item isn't answered I get an error: "Notice: Undefined index: rb_amntspent in...
    5. Pop-up window errors:"translators not loaded due to errors"
      I keep getting pop-up windows when using DWMX....any suggestions as to how to fix this type of error? The pop-up says: at line 16...
  3. #2

    Default Re: Errors in ASP Code

    "Sean" <S.Cairns@belfasttelegraph.co.uk> wrote in message
    news:2A67FA63-7F3C-44C9-A8AE-6B554F093334@microsoft.com...
    > Ive cleaned the code up a wee bit to see if it makes it easier to spot
    were i've went wrong. Hope this helps, thanks again
    > Sean
    [snip]

    Stop creating a new post each time!

    So far you have the same basic question under:
    ASP still having problems
    ASP errors
    Errors in ASP Code

    Just hit "Reply Group" when responding to a reply!


    McKirahan 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