Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old December 15th, 2005, 05:25 AM
middletree
Guest
 
Posts: n/a
Default '800a0e79' Operation is not allowed when the object is open

I'm having a hard time finding out why I'm getting this error. Seems to work
just fine on another site I built. I went to ASPFAQ.com, Microsoft.com, and
some other sites. Have not been able to spot the problem yet.

Very simple code:

First, the connection:
strConnection ="Provider=Microsoft.Jet.OLEDB.4.0;Data
Source="&server.mappath(".\**.mdb")&";User Id=***;Password=***;"
filePath = Server.MapPath("***.mdb")

Next, the code, which queries one table in an Access database, and pulls a
city, state, name, and phone number, all of which are of type Memo:


<% Set objConnection = Server.CreateObject("ADODB.Connection")
objConnection.ConnectionString = strConnection
objConnection.Open

strSQL = "select State, City, BranchID, Phone, BranchName from CMMain "

set RS = objConnection.execute (strSQL)
RS.Open strSQL, objConnection,1,1

If Not RS.EOF Then
Do While not rs.EOF
strState = rs("State")
strCity = rs("City")
strBranchID = rs("BranchID")
strPhone = rs("Phone")
strBranchName = rs("BranchName")
%>
<tr>
<td>
<%=strBranchName%>
</td>
<td>
<%=strCity%>
</td>
<td>
<%=strState%>
</td>
<td>
<%=strPhone%>
</td>
</tr>
<%Response.Clear()
Loop
End if
set rs = nothing
set ObjConnection = nothing
%>



  #2  
Old December 15th, 2005, 05:35 AM
middletree
Guest
 
Posts: n/a
Default Re: '800a0e79' Operation is not allowed when the object is open

Got past it.

this was redundant, so I got rid of the second line:
[color=blue]
> set RS = objConnection.execute (strSQL)
> RS.Open strSQL, objConnection,1,1[/color]


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles