473,473 Members | 1,818 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Arguments are of the wrong type, are out of acceptable range, or are in conflict with

2 New Member
Hello,

Please help me. I'm trying to call a sql procedure for each record in a recordset.
I'm getting this error :Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another and because my close to zero experience i don't know what's wrong. Thank you
Expand|Select|Wrap|Line Numbers
  1. Do while not rsResultsDetail.EOF
  2.  
  3.    Set cmd = Server.CreateObject("ADODB.Command")
  4.    cmd.ActiveConnection = conn
  5.    cmd.CommandText = "Delete_Nonconformities"
  6.    cmd.CommandType =adCmdStoredProc
  7.    cmd.Parameters.Append cmd.CreateParameter("@P_NONCONFORMITY_ID", adInteger, adParamInput) 
  8.    cmd.Parameters("P_NONCONFORMITY_ID") =rsResultsDetail("NonConformityID")
  9.    cmd.Execute
  10.  
  11.    rsResultsDetail.MoveNext
  12.  
  13. loop
May 28 '09 #1
3 5736
jhardman
3,406 Recognized Expert Specialist
Is the error coming from the sql client or from IIS (an ASP error)?
May 29 '09 #2
Raluk
2 New Member
Well.... i don't think this is the problem , because it works if i do something like this:

sqlDelteNonconformity = "delete from Nonconformity where ID=" & rsResultsDetail("NonConformityID")
set rsDeleteNonconformity = Server.CreateObject("ADODB.Recordset")
rsDeleteNonconformity.Open sqlDelteNonconformity ,conn,1,2
May 29 '09 #3
jhardman
3,406 Recognized Expert Specialist
Is this error returned from the SQL client? I can't tell from your post, but it sounds like you have not sent the parameters correctly. For example, the stored procedure might be expecting an integer, but you are actually sending a string. Or perhaps it is expecting another parameter.

Jared
Jun 1 '09 #4

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

Similar topics

1
by: J. Muenchbourg | last post by:
I'm getting an "Arguments are of the wrong type, out of acceptable range, in conflicts with each other " error , pointing to the sql statement in this block: Dim rstime Set rstime =...
7
by: Tim Gaunt | last post by:
Hi, I'm hoping that someone will be able to help me with this one, I'm developing an application which basically inserts a load of data into the database ready for validation at a later date, I...
15
by: Erica | last post by:
I'm getting the following error: ADODB.Recordset error '800a0bb9' Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another. /shop/results.asp, line...
1
by: Jack | last post by:
Hi, I am trying to add a new record to a main page. This page is the processing page to a form. However, I am getting the following error message: Error Type: ADODB.Recordset (0x800A0BB9)...
2
by: SyrUser03 | last post by:
I am getting this error and I can't seem to figure it out. <% Set cdoConfig = CreateObject("CDO.Configuration") With cdoConfig.Fields .Item(cdoSendUsingMethod) = cdoSendUsingPort *****...
0
by: Edward | last post by:
I have a wrapper function for executing a SQL Server Stored Procedure that returns no records: Public Function modRunStoredProc(vstrSPName As String, ParamArray vvarParams() As Variant) As...
1
by: iam247 | last post by:
Hi I have a web page which receives information from a form (using request.form) and also attempts to look at an Access query to read in recoeds to a variable named rsGroup. When I have the...
12
by: anantraoneel | last post by:
Hi Friend My project is a Library System. In Project is Book Master form. If I've select Book Type from Type Master and Publication from Publication Master then this error has come: "Arguments...
1
by: thecubemonkey | last post by:
Hi everyone, I'm getting the following error: ADODB.Recordset error '800a0bb9' Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another....
6
by: gforgourav | last post by:
'Arguments are of wrong type, are out of acceptable range, or are in conflict with one another' this error occurs ... i m using vb.net 2005 with sql server 2000 backend i had a project in vb 6.0...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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...
1
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.