CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Operation is not allowed when the object is closed.

Print topic Send  topic

Author Message
emperezg

Posts: 8
Posted: 03/28/2007, 4:26 PM

Hi All,

I made sure that the connection string is fine:

ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Program Files\CodeChargeStudio3\Projects\Test2\TaskMan_MSAccess.mdb;Persist Security Info=False"

When I try to login to my app and get this error:

Error Type:
ADODB.Recordset (0x800A0E78)
Operation is not allowed when the object is closed.
/Test2/Common.asp, line 1868


The darn line is below:
'****************************************************
Set Connection = New clsDBConnection1
Connection.Open
SQL = "SELECT emp_id, group_id FROM employees WHERE emp_login='" & Replace(Login, "'", "''") & "' AND emp_password='" & Replace(Password, "'", "''") & "'"
Set RecordSet = Connection.Execute(SQL)
Result = NOT RecordSet.EOF 'This is the line
If Result Then

Please advice

Thanks
_________________
helping others gives meaning to your life!
View profile  Send private message
DeanCovey


Posts: 22
Posted: 03/29/2007, 3:29 AM

I see you are using Access. I get this every now and then when using queries as my recordset. If I change the query (field names for example) then you have to change your grid to the new changes.

You might just double check that all your fields in your SQL variable are available and spelled correctly. Also, I don't know if SQL is a reserved word in ASP. Just for the heck of it, change it to qSQL or something.

Also, I am not sure about "Result = NOT RecordSet.EOF " Exactly what are you trying to do with this?
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.