Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - can’t find the solution to this problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

can’t find the solution to this problem

 Post Reply Post Reply
Author
eagle00789 View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 24 March 2003
Location: Netherlands
Status: Offline
Points: 132
Post Options Post Options   Thanks (0) Thanks(0)   Quote eagle00789 Quote  Post ReplyReply Direct Link To This Post Topic: can’t find the solution to this problem
    Posted: 31 March 2003 at 8:54am

I can't find the solution to the problem below:

ADODB.Recordset (0x800A0BB9)
The arguments are of the wrong type, are not in the allowed range or are in conflict with each other
.

---

<%
 Dim DB_CONNECTIONSTRING

 DB_CONNECTIONSTRING = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.Mappath("Bugs.mdb") & ";"
Dim strSQL       ' String variable for building our query

 Dim objRecordset
 Set objRecordset = Server.CreateObject("ADODB.Recordset")

 strSQL = "SELECT * FROM tblBugs WHERE 0=1;"

 objRecordset.Open strSQL, DB_CONNECTIONSTRING, adOpenKeyset, adLockPessimistic, adCmdText 'this is the line where the error shows up
 
 objRecordset.AddNew

 objRecordset.Fields("Bug_Page") = Request.ServerVariables("HTTP_REFERER")
 
 objRecordset.Fields("Description") = Request.QueryString("S1")
 
 objRecordset.Fields("Extra_info") = Request.QueryString("S2")
 objRecordset.Fields("When") = Now()

 objRecordset.Update

 objRecordset.Close
 Set objRecordset = Nothing

%>

---



Edited by eagle00789
Using forum at Gravenrode and here and here
Back to Top
ultramods View Drop Down
Groupie
Groupie
Avatar

Joined: 08 January 2003
Location: Scotland
Status: Offline
Points: 146
Post Options Post Options   Thanks (0) Thanks(0)   Quote ultramods Quote  Post ReplyReply Direct Link To This Post Posted: 31 March 2003 at 9:04am

Try leaving of adCmdText

objRecordset.Open strSQL, DB_CONNECTIONSTRING, adOpenKeyset, adLockPessimistic

Back to Top
eagle00789 View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 24 March 2003
Location: Netherlands
Status: Offline
Points: 132
Post Options Post Options   Thanks (0) Thanks(0)   Quote eagle00789 Quote  Post ReplyReply Direct Link To This Post Posted: 31 March 2003 at 9:36am
it doesn't work
Using forum at Gravenrode and here and here
Back to Top
ultramods View Drop Down
Groupie
Groupie
Avatar

Joined: 08 January 2003
Location: Scotland
Status: Offline
Points: 146
Post Options Post Options   Thanks (0) Thanks(0)   Quote ultramods Quote  Post ReplyReply Direct Link To This Post Posted: 31 March 2003 at 9:55am
What have you set adOpenKeyset and adLockPessimistic to?
Back to Top
eagle00789 View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 24 March 2003
Location: Netherlands
Status: Offline
Points: 132
Post Options Post Options   Thanks (0) Thanks(0)   Quote eagle00789 Quote  Post ReplyReply Direct Link To This Post Posted: 31 March 2003 at 5:31pm

they are constants. i changed them to:

adOpenKeySet = 1
adLockPessimistic = 2

and then it worked.

thx for the help

below is the changed line:

-------------
objRecordset.Open strSQL, DB_CONNECTIONSTRING, 1, 2
-------------



Edited by eagle00789
Using forum at Gravenrode and here and here
Back to Top
MadDog View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 01 January 2002
Status: Offline
Points: 3008
Post Options Post Options   Thanks (0) Thanks(0)   Quote MadDog Quote  Post ReplyReply Direct Link To This Post Posted: 31 March 2003 at 5:41pm
ADODB.Recordset, 99% of the time that means that you are trying to query something in the database that isnt there, probably missplet a word or its just not in the database.
Back to Top
eagle00789 View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 24 March 2003
Location: Netherlands
Status: Offline
Points: 132
Post Options Post Options   Thanks (0) Thanks(0)   Quote eagle00789 Quote  Post ReplyReply Direct Link To This Post Posted: 01 April 2003 at 4:20am
but not this-time. because the above asp-page just enters some data into a database
Using forum at Gravenrode and here and here
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.