Ask a Question related to ASP Database, Design and Development.
-
Aaron Bertrand [MVP] #1
Re: ASP still having problems
You need to include adovbs.inc or, better yet, read this article for a
better approach:
[url]http://www.aspfaq.com/2112[/url]
--
Aaron Bertrand
SQL Server MVP
[url]http://www.aspfaq.com/[/url]
"Sean" <S.Cairns@belfasttelegraph.co.uk> wrote in message
news:AA346E11-FFC5-4D8F-9985-BAC84F8C9AEC@microsoft.com...from a stored procedure. The stored procedure has one input parameter.> Hey all, thanks for your help last time Bob, Im starting to get there
>
> Ive been given some great help with writing my asp to return the results
I've been re-writing my asp quite a lot and now i've become a little
confused because unfortunately im very new to coding. The following is my
asp code and below is the html code from my form.the problem is. When I comment that line out and refresh the page I got> Ive been getting the following error message:
>
> (Microsoft VBScript runtime error '800a01f4'
> Variable is undefined: 'adCmdStoredProc'
> /testing.asp, line 23 )
>
> Does this mean my connection is at least worked. Does anyone know what
another error: -conflict with one another.>
> (ADODB.Parameter error '800a0bb9'
> Arguments are of the wrong type, are out of acceptable range, or are insure if I require all of the code in there. I commented out alot incase I> /testing.asp, line 28 )
>
> Could some please help me re-write this slightly in order to work. Im not
need it further down the line. I dont seem to have made reference to the
asp code in the html code. How is this done.such a good feeling when it all works.> Thank you so much for helping me im starting to really go nuts, but its("t_week_end_date", adDate, adParamInput)>
> <%
> Option Explicit
> 'if len(Request.form("ReportByPubClass2")) > 0 then
> 'login processing
> 'Connect to Database
> Dim sDate
> sDate = Request.Form("t_week_end_date")
> dim dbcn, dbrs, byclassnoprice
> Set dbcn = server.CreateObject("ADODB.Connection")
> set dbrs = server.CreateObject("ADODB.Recordset")
> Set byclassnoprice = server.CreateObject("ADODB.Command")
> dbcn.open Application ("connectionString")
> 'set the connection
> set byclassnoprice.ActiveConnection = dbcn
> 'create the command object
> byclassnoprice.CommandText = "ByClassPUBCLASS"
> 'create and append the input parameters
> 'byclassnoprice.CommandType = adCmdStoredProc
> 'set the name of the stored procedure
> Dim objParam, adDate
> set objParam = byclassnoprice.CreateParameter
> objParam.Name = "t_week_end_date"
> objParam.Type = adDate
> objParam.Direction = adParamInput
> objParam.Value = t_week_end_date.Text
>
> 'byclassnoprice.Parameters.Append byclassnoprice.CreateParametert_week_end_date.Text> 'set the initial value of the parameter
> 'byclassnoprice.Parameters ("t_week_end_date").Value =Do I need to make reference to it in here>
> 'call the stored procedure and save the results in a recordset
> dbrs = byclasspubclass.Execute
>
> dim sHTML
> if rs.eof then
> response.write "No records were returned"
> else
> 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 sHTML
> response.write "</table>"
> End if
> dbrs.Close: set dbrs = nothing
> dbcn.close: set dbcn = nothing
>
> 'end if
> %>
>
> How does this form know how to run the asp code and return the recordset.action="displayreports.asp"><p>Please Enter a Weekending Date>
> <form name="accounting" method="post"name="ReportByPubClass2" value="View Report"></p></form>> <input type="text" name="t_week_end_date"></p><p><input type="submit"
Aaron Bertrand [MVP] Guest
-
problems with 8.0 Rc4
I've been trying to check that my current application working on postgres 7.4 will work with 8.0. I've not checked the application yet but I'm... -
problems with preLoadNetThing and fileName (was problems with preLoadNetThing and importFileInto)
You don't want to leave the QT member in your cast when you publish your movie - it's not really there, it's linked. When you run the movie it will... -
IE6 problems
I have a login script to a website where a user logs in through a standard webform with a username and password that needs to be validated. My... -
I having problems with IIS
I just tried to view a page that I had earlier on my own personal web site and was not able to view it. I then tried just plain old localhost and... -
Why am I Having Problems ?
On 8/2/03 1:08 PM, in article 6TUWa.216121$o86.33889@news1.central.cox.net, "Spam@markris.com" <Spam@markris.com> wrote: A Relationship requires...



Reply With Quote

