Op not allowed when obj is closed? - RESOLVED
I get the following error when attempting to assign a recordset as the Data source for a DataReport in VB6...
"Operation not allowed when object is closed."
I have not explicitly closed the newly created rst.
I am using:
cursorlocation of adUseClient
cursortype of adLockReadOnly
cursorlocktype of adLockOptimistic
What else can i check? The very next step after creating the rst I check the recordcount and that is when I am getting the error.
HELP!
Re: Op not allowed when obj is closed?
Quote:
Originally posted by mdsoren
I get the following error when attempting to assign a recordset as the Data source for a DataReport in VB6...
"Operation not allowed when object is closed."
I have not explicitly closed the newly created rst.
I am using:
cursorlocation of adUseClient
cursortype of adLockReadOnly
cursorlocktype of adLockOptimistic
What else can i check? The very next step after creating the rst I check the recordcount and that is when I am getting the error.
HELP!
There must be a problem with the query. So, you don't get any recordset.... this means the rst is closed.