I want to print a report using de-dr in vb6 (from ms access). When I did this for the first time it worked perfectly, but if I want to run it again (to choose another date range for example) I got Run-time error '3705':
The operation requested by the application is not allowed if the object is open.

This is the line where I got the error.

deCustomer.Classification_Grouping Date1.Text, Date2.Text, ""

I use an SQL Statement to select the source data.

SELECT * FROM Table WHERE ([Date] between ? and ?) AND Status<>?

I have 3 param: date1, date2 and status. I also make a group by Classification.

Thanks very much.