473,396 Members | 2,076 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to write using ADODB RecordSet

Hi
.Actually I want to count the number of records in a recordset. So I m using the ADODB.Recordset. I just want some one to correct me.

Set Cmd = Server.CreateObject("ADODB.Recordset")
Cmd.ActiveConnection = C
Cmd.CommandText = "CP.dbo.spBCode"
Cmd.CommandType = adCmdStoredProc


cmd.Parameters.Append cmd.CreateParameter("@Bcode", adVarChar, adParamInput, 255, dbQuoteOrNull(sBCode))
cmd.Parameters.Append cmd.CreateParameter("@F_Ind",adInteger, adParamInput, , dbQuoteOrNull(bFInd))
cmd.Parameters.Append cmd.CreateParameter("@S_Ind", adInteger, adParamInput, , dbQuoteOrNull(bSInd))
cmd.Parameters.Append cmd.CreateParameter("@H_Ind", adInteger, adParamInput, , dbQuoteOrNull(bHInd))
cmd.Parameters.Append cmd.CreateParameter("@Active", adInteger, adParamInput, , dbQuoteOrNull(bActive))
cmd.Parameters.Append cmd.CreateParameter("@ACF", adInteger, adParamInput, , dbQuoteOrNull(bACF))
cmd.Parameters.Append cmd.CreateParameter("@Base", adInteger, adParamInput, , dbQuoteOrNull(bBase))
cmd.Parameters.Append cmd.CreateParameter("@MHN", adInteger, adParamInput, , dbQuoteOrNull(bMHN))
cmd.Parameters.Append cmd.CreateParameter("@SHEVHO", adInteger, adParamInput, , dbQuoteOrNull(bSHEVHO))


The error i m gettin here is
LogTime = 11/7/2007 3:28:07 PM
ASPCode =
ASPDescription =
Category = Microsoft VBScript runtime
Column = -1
Description = Object doesn't support this property or method: 'Cmd.CommandText'
File = /cp/an/ref/BCode.asp
Line = 414
Number = -2146827850
Source =
-----------------------
Here only the Bcode is a character type , the rest are all bit type.


Can anyone look into this plzzzzzzzzzz .
just want to be sure we use the recordset here or the ADODB command????????

thanks in advance..
Nov 8 '07 #1
1 2016
Aik Bar phir Aapka Advance Thanks Acha Laga
AAp Mail Id Do Mujhe On sonu5588@yahoo.com
Nov 16 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Randi | last post by:
Hi all, I have this project to use the ADODB control to acces and manipulate the Access DB. I amd the mistake of first doing this project with just the data control. It worked fine with this...
5
by: Bruno Alexandre | last post by:
Hi guys, withou using SP, I want to be able to add a Parameter to the SQL Query and retrive the Recordset so I can use the Paging property under the recorset object.... how can I do this? I'm...
4
by: Philipp Lenssen | last post by:
This drives me crazy: I have a file upload script to save an image on the disk (and later on in the database)... it used to work and now it doesn't, though I didn't change anything within the file...
0
by: elcc1958 | last post by:
I need to support a VB6 application that will be receiving disconnected ADODB.Recordset from out DotNet solution. Our dotnet solution deals with System.Data.DataTable. I need to populate a...
19
by: bdt513 | last post by:
I am trying to extract the values from a query using VBA. Specifically, I want to concatenate all the values of the "rosEmail" field from query "qselRosterEmailList" into one string (strEmails). I...
0
by: billmiami2 | last post by:
Perhaps many of you MS Access fanatics already know this, but it seems that stored procedures and views are possible in Jet. I thought I would leave this message just in case it would help anyone....
1
by: Lokanath | last post by:
Hi, I am upgrading my database componenet from VB6.0 to VB.net but would like to use ADO for database operation. Am trying to retrieve no of tables in a database using connection.openschema method...
0
by: =?Utf-8?B?UmFodnlu?= | last post by:
Hi All; I am writing a COM interface that will need to be called from VBScript (Legacy App). I need to return a recordset to the calling app. I am using ADODB to populate the recordset and...
3
by: Jollywg | last post by:
I am one of many who is having troubles with the write conflict dialog box. I've attached my code...any help would be greatly appreciated. Private Sub UpdateInvoice() Dim rsItemMaster As...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.