Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Advice on DataEnvironment and DataReport

Status
Not open for further replies.

alexisa

MIS
Nov 20, 1998
4
US
I have a DE and a DataReport properly attached to a database and the report I designed is properly displayed. However after I close the report screen and return to where the report was called from and want to execute it again or execute a different report I get the error "cannot process this report while the object is open". I take it that this means the DE needs to be closed or refreshed somehow.I have tried different things with no luck.<br>
Any ideas??<br>
Any help will be more than appreciated.<br>
Thanks<br>
Alexis
 
The open object is a recordset. Examine the state property of the recordet before executing it. If it is open then close it and rerun report.
 
Try this:<br>
If RS.State = adStateClosed then<br>
RS.Open<br>
End If
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top