Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Jan 2001
    Posts
    254
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Close report through a button on it (Access 2000)

    Does anybody knows a way to put an working button on a report and place an event on this button?
    I want to close the report and open a form,but i do not want to use the toolbar alternative.
    I know that what i ask is impossible, but there are so may inventive people in the net and perhaps somebody might suggest some unexpected solution ?

  2. #2
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Indianapolis, Indiana, USA
    Posts
    1,862
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Close report through a button on it (Access 2000)

    Why don't you use the OnClose event of your report? As Charlotte stated in a previous thread, you can not place a working button on a report - Reports are for printing.

    If you want to open a form when the report is closed, just run an OpenForm macro on the OnClose event of the report - either with code or with a macro. The code would appear as follows:<pre>Private Sub Report_Open(Cancel As Integer)
    DoCmd.OpenForm("<YourForm>", acNormal) 'plus any additional arguments you need
    End Sub</pre>

    HTH <img src=/S/salute.gif border=0 alt=salute width=15 height=20>

  3. #3
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Close report through a button on it (Access 2000)

    Please do not start new threads to ask the same question again. Posting a response in the original thread will serve the same purpose. Your post will move even an old thread up in the index and the post indicator will show that a post has been made.

    Starting a new thread on an old question clutters up the archives and does nothing for other users trying to find answers to the same question.
    Charlotte

Posting Permissions

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