473,378 Members | 1,334 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,378 software developers and data experts.

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

Hey guys.

I'm banging my head against the wall here to try and understand why I keep receiving this error. I'm trying to update a record (http://www.simplymad.org/Rtape/select_contacts.asp) and I keep getting the above error. Can anyone help me understand where I should look for the problem here?

The most maddening part is that I have this working perfectly in another section of the site here: http://www.simplymad.org/Rtape/select_shows.asp

I've created text files for all the docs that are involved in this mess. They can be seen here:


http://www.simplymad.org/RTape/TXT/demo_update_contacts.txt

http://www.simplymad.org/RTape/TXT/edit_contacts.txt

http://www.simplymad.org/RTape/TXT/select_contacts.txt

http://www.simplymad.org/RTape/TXT/update_contacts.txt

Can anyone help save my sanity?

Thanks in advance!
Nov 6 '07 #1
3 2988
markrawlingson
346 Expert 100+
This usually refers to a database or recordset connection error, usually a recordset.

Try replacing the code here... (as found in http://www.simplymad.org/RTape/TXT/select_contacts.txt)

Expand|Select|Wrap|Line Numbers
  1.            set db = server.createobject("ADODB.connection")
  2.                db.open "DSN=807838_contactsdb"
  3.            sSQL = "SELECT * FROM contacts"
  4.             set rs = db.execute(sSQL)
  5.            current=1
  6.  
With...

Expand|Select|Wrap|Line Numbers
  1. set db = server.createobject("ADODB.connection")
  2. db.open "DSN=807838_contactsdb"
  3. sSQL = "SELECT * FROM contacts"
  4. set rs = Server.CreateObject("ADODB.RecordSet")
  5. rs.Open sSQL, db, 3,3
  6.  
If that doesn't work, you should have a look over your database connection string to make sure it is 100% correct.

This is just me being nit picky... but I'd also strongly recommend using a DO UNTIL loop instead of a WHILE loop.

Expand|Select|Wrap|Line Numbers
  1. Do Until rs.EOF
  2. 'some code
  3. rs.MoveNext
  4. Loop
  5.  
Instead of saying "Do something while this condition is not true" you're saying "Do this until this condition is true."

Same outcome, just makes more sense... but like I said that's just me being nitpicky :P
Nov 6 '07 #2
Thanks for your answer. Changing the code didn't solve the problem. I'm going back in to look at the database connections but I can't imagine how that could be the problem since this exact functionality is working on the other page I referenced. I copied it exactly. <Sigh>
Nov 6 '07 #3
@markrawlingson

funny to say this..(though no offense meant)..u gave advice of changing a "from" code to "to" code to solve the error..i was having this same error with your "to" code..solved it with your "from" code
Oct 18 '10 #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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.