I have a problem.The problem is if open my data report with the following code:

Private Sub cmdReport_Click()
DataEnvironment1.Main txtJob.Text
rptMain.Show
End Sub

When i close the report and I want to open it again i get an error wich says i can not open the report again and that it is already in use (open).

What must I do to prevent this.

Thanks for your help.