PDA

Click to See Complete Forum and Search --> : Open a data report 2 times ????


Corne
Jan 23rd, 2000, 08:55 PM
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. :)

DiGiTaIErRoR
Jan 23rd, 2000, 09:08 PM
you must close it
like when you use OPEN you do this:
open file for input as 1
'do something
close 1

Hope this helps

------------------
DiGiTaIErRoR