473,406 Members | 2,633 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,406 software developers and data experts.

Arguments are of the wrong type...connecting to Access DB

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.
/newsite/faq.asp, line 57

Can you look at the code below and let me know if the problem is my
code or if there is a server setting that needs adjustment. Thanks.

__________________________________________________ ________________________

I am using a global.asa file with:
SCRIPT LANGUAGE="VBScript" RUNAT="Server">

Sub Application_OnStart()

Dim strConn
strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\Departments
\MBA_UBALT\newsite\faq.mdb"
Application("strConn") = strConn

End Sub

</SCRIPT>

The ASP page code is:

<%
Dim rsFAQ
Set rsFAQ = Server.CreateObject("ADODB.Recordset")

rsFAQ.Open "FAQ", Application("strConn"), adOpenKeyset,
adLockReadOnly, adCmdText
Do While Not rsFAQ.EOF
Response.Write "<li><b>" & rsFAQ("Question") & "</b>"
Response.Write "<p>" & rsFAQ("Answer") & "</p></li>"
rsFAQ.MoveNext
Loop
If rsFAQ.BOF Then
Response.Write "<p>No FAQs in the database!</p>" & vbNewLine
End If

rsFAQ.Close
%>
Oct 3 '08 #1
1 3512
thecubemonkey wrote:
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.
/newsite/faq.asp, line 57

Can you look at the code below and let me know if the problem is my
code or if there is a server setting that needs adjustment. Thanks.

__________________________________________________ ________________________

rsFAQ.Open "FAQ", Application("strConn"), adOpenKeyset,
adLockReadOnly, adCmdText
This error is typically due to the failure to define those ado constants.
See:
http://www.aspfaq.com/show.asp?id=2112

That said, I have to say there is rarely a need to use other than the
default, server-side forward-only cursor type. This statement could be
changed to (assuming FAQ is a table in your database):

dim cn, rs
set cn = createobject("adodb.connection")
cn.open Application("strConn")
set rs = cn.Execute("select * from FAQ',,1)
Further relevant reading: http://www.aspfaq.com/show.asp?id=2096
http://www.aspfaq.com/show.asp?id=2467
--
Microsoft MVP - ASP/ASP.NET - 2004-2007
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Oct 3 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

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 =...
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)...
8
by: the other john | last post by:
Here's my project info first... DB: Access 2000 server: IIS 2003 Here is the error I'm getting... ADODB.Recordset error '800a0bb9' Arguments are of the wrong type, are out of acceptable...
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...
0
by: jaYPee | last post by:
rst.Open "SwitchboardItems", cn, adOpenStatic, adLockOptimistic rst.Find "=" & Me! & " AND =" & intBtn I have this code in my MS Access XP and it gives me an error "Arguments are of the wrong...
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...
0
by: thecubemonkey | last post by:
I'm having an issue with connecting to an Access DB. I'm getting the following error: ADODB.Recordset error '800a0bb9' Arguments are of the wrong type, are out of acceptable range, or are in...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
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
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
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.