Results 1 to 2 of 2

Thread: Open a data report 2 times ????

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2000
    Location
    South-Africa
    Posts
    46

    Post

    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.

  2. #2
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111

    Post

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width