Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 8th, 2005, 07:24 AM
Authorized User
 
Join Date: Sep 2004
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Nitin_sharma Send a message via Yahoo to Nitin_sharma
Default ADODB...

Hi Guys,
I have the following code and it gives the error provided below.
Any help is appreciated.

*******CODE**************

dim i_title
dim i_text
dim valid_date
dim iauto_delete
dim expiry_date
dim current_date
dim user_id
dim dbCmd

i_title = request("title")
i_text=request("bulletin_txt")
Valid_date = request("expdate")
iauto_delete= request("auto_delete")
expiry_date= request("expirydate")
current_date = request("hidSysDate")
user_id=123

call open_db_connection()
set dbCmd = Server.CreateObject("ADODB.COMMAND")
cmd.ActiveConnection = con
Const Bulletin_insert = "{call HMIS_BULLETIN_Pkg.INSERT_BULLETIN_PROC(?,?,?,?,?,? ,?,?)}"
with dbCmd
.CommandText = Bulletin_insert
.CommandType = adCmdText
.Parameters(0).direction = adParamInput
.Parameters(1).direction = adParamInput
.Parameters(2).direction = adParamInput
.Parameters(3).direction = adParamInput
.Parameters(4).direction = adParamInput
.Parameters(5).direction = adParamInput
.Parameters(6).direction = adParamInput

.Parameters(0).Value = i_title
.Parameters(1).Value = i_text
.Parameters(2).Value =current_date
.Parameters(3).Value =i_valid_date
.Parameters(4).Value = i_auto_delete
.Parameters(5).Value = expiry_date
.Parameters(6).Value = user_id

.execute
end with
dbCmd.Cancel
set dbCmd = nothing


********ERROR***********
ADODB.Command error '800a0cc1'

Item cannot be found in the collection corresponding to the requested name or ordinal.

/hmis/NITIN/asp_files/HMIS_Add_Bulletins.asp, line 347

Cheers,
Nitin

 
Old February 8th, 2005, 01:06 PM
Friend of Wrox
 
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default

Where is line 347?

This error usually comes up when u misspelled a column name.

Om Prakash





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to update using ADODB jmhemadri Classic ASP Databases 1 September 9th, 2008 06:07 PM
ADODB Recordset sporkman43 Classic ASP Basics 4 November 9th, 2006 04:51 AM
Can we Inherit ADODB venki5star Visual Studio 2005 3 March 13th, 2006 10:50 AM
ADODB.Fields EricJ ASP.NET 1.x and 2.0 Application Design 6 May 5th, 2005 07:21 AM
How to get adodb.record from adodb.recordset John Pennington Pro VB Databases 1 November 20th, 2004 06:17 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.