Ask a Question related to ASP Database, Design and Development.
-
Matthew Louden #1
ASP Add Record Approaches
The following ASP code yields the following run-time error, I want to know
which approaches for adding records. Using "Insert Into" statement or AddNew
method in recordset object?? As I mentioned in previous post, when I use
"Insert Into" SQL statement, it yields "ADODB.Recordset error '800a0e78'
Operation is not allowed when the object is closed."
<%
Dim objRS
Set objRS = Server.CreateObject ("ADODB.Recordset")
objRS.Open "test", strConnect, adOpenStatic, adLockOptimistic, adCmdTable
objRS.MoveLast
objRS.AddNew ' add a new record
objRS("id") = "9999"
objRS("name") = "Psycho"
objRS.Update
objRS.Close
Set objRS = Nothing
%>
ADODB.Recordset error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in
conflict with one another.
Matthew Louden Guest
-
ASP connect to SQL Server 6.5 approaches
Hi: I am looking at an ASP application that has a connection to an SQL Server 6.5 database. I believe the connection is made in the global.asa,... -
Find record w/ conditions met in the same child record
I'll use 2 files to demonstrate my question. The first file is Animal. It has 4 fields. Id (serial number) ZooId (number) Name (text) Food... -
Approaches to Logging In
I'm currently working on a portion of a website for my high school's band (though I'm now in college) and one of the sections contains contact... -
[PHP] Approaches to Logging In
Seth Willits <mailto:seth@freaksw.com> on Friday, August 29, 2003 3:24 PM said: Well you could use cookies also but those can be tampered with.... -
Stop adding record in subform after record count = 1
Can someone help in in what to put after the THEN statment to allow one entry if the Record count is =>1 in the Before insert or should I set the... -
Matthew Louden #2
ASP Add Record Approaches
The following ASP code yields the following run-time error, I want to know
which approaches for adding records. Using "Insert Into" statement or AddNew
method in recordset object?? As I mentioned in previous post, when I use
"Insert Into" SQL statement, it yields "ADODB.Recordset error '800a0e78'
Operation is not allowed when the object is closed."
<%
Dim objRS
Set objRS = Server.CreateObject ("ADODB.Recordset")
objRS.Open "test", strConnect, adOpenStatic, adLockOptimistic, adCmdTable
objRS.MoveLast
objRS.AddNew ' add a new record
objRS("id") = "9999"
objRS("name") = "Psycho"
objRS.Update
objRS.Close
Set objRS = Nothing
%>
ADODB.Recordset error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in
conflict with one another.
Matthew Louden Guest
-
Ken Schaefer #3
Re: ASP Add Record Approaches
[url]www.adopenstatic.com/faq/800a0bb9.asp[/url]
That said, please see answer to your previous post - you should use the SQL
statement, but not the recordset object.
Cheers
Ken
"Matthew Louden" <jrefactors@hotmail.com> wrote in message
news:eix3iTLhDHA.2164@TK2MSFTNGP09.phx.gbl...
: The following ASP code yields the following run-time error, I want to know
: which approaches for adding records. Using "Insert Into" statement or
AddNew
: method in recordset object?? As I mentioned in previous post, when I use
: "Insert Into" SQL statement, it yields "ADODB.Recordset error '800a0e78'
: Operation is not allowed when the object is closed."
:
: <%
: Dim objRS
: Set objRS = Server.CreateObject ("ADODB.Recordset")
: objRS.Open "test", strConnect, adOpenStatic, adLockOptimistic,
adCmdTable
: objRS.MoveLast
: objRS.AddNew ' add a new record
: objRS("id") = "9999"
: objRS("name") = "Psycho"
: objRS.Update
: objRS.Close
: Set objRS = Nothing
: %>
:
: ADODB.Recordset error '800a0bb9'
: Arguments are of the wrong type, are out of acceptable range, or are in
: conflict with one another.
:
:
:
:
Ken Schaefer Guest
-
Ken Schaefer #4
Re: ASP Add Record Approaches
[url]www.adopenstatic.com/faq/800a0bb9.asp[/url]
That said, please see answer to your previous post - you should use the SQL
statement, but not the recordset object.
Cheers
Ken
"Matthew Louden" <jrefactors@hotmail.com> wrote in message
news:eix3iTLhDHA.2164@TK2MSFTNGP09.phx.gbl...
: The following ASP code yields the following run-time error, I want to know
: which approaches for adding records. Using "Insert Into" statement or
AddNew
: method in recordset object?? As I mentioned in previous post, when I use
: "Insert Into" SQL statement, it yields "ADODB.Recordset error '800a0e78'
: Operation is not allowed when the object is closed."
:
: <%
: Dim objRS
: Set objRS = Server.CreateObject ("ADODB.Recordset")
: objRS.Open "test", strConnect, adOpenStatic, adLockOptimistic,
adCmdTable
: objRS.MoveLast
: objRS.AddNew ' add a new record
: objRS("id") = "9999"
: objRS("name") = "Psycho"
: objRS.Update
: objRS.Close
: Set objRS = Nothing
: %>
:
: ADODB.Recordset error '800a0bb9'
: Arguments are of the wrong type, are out of acceptable range, or are in
: conflict with one another.
:
:
:
:
Ken Schaefer Guest



Reply With Quote

