Ask a Question related to ASP Database, Design and Development.
-
Sean #1
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
-
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... -
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... -
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... -
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... -
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... -
McKirahan #2
Re: Errors in ASP Code
"Sean" <S.Cairns@belfasttelegraph.co.uk> wrote in message
news:2A67FA63-7F3C-44C9-A8AE-6B554F093334@microsoft.com...were i've went wrong. Hope this helps, thanks again> Ive cleaned the code up a wee bit to see if it makes it easier to spot[snip]> Sean
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



Reply With Quote

