From a report back to a form?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Riun
    New Member
    • Oct 2006
    • 34

    From a report back to a form?

    Hi,
    I have a form with a command button that directs you to a report. I need a button on the report, to direct you back to the form. Is this possible? How else can I be directed back to the form without just clicking on the 'close' button on the menu bar?
  • NeoPa
    Recognized Expert Moderator MVP
    • Oct 2006
    • 32633

    #2
    Originally posted by Riun
    Hi,
    I have a form with a command button that directs you to a report. I need a button on the report, to direct you back to the form. Is this possible? How else can I be directed back to the form without just clicking on the 'close' button on the menu bar?
    What I would do is hide the form when you open the report, then show it just before closing the report.
    A more sophisticated system using a special class can be found in Cascading Forms, but for a single situation the former is fine.

    Comment

    • Riun
      New Member
      • Oct 2006
      • 34

      #3
      Tnx NeoPa, great idea. I will try it and let you know how it went.

      Comment

      • NeoPa
        Recognized Expert Moderator MVP
        • Oct 2006
        • 32633

        #4
        Please do. As you can see I've had a similar requirement myself, and with the class module, I never have to worry about it any more.

        Comment

        • Riun
          New Member
          • Oct 2006
          • 34

          #5
          Hi NeoPa, sorry for the late reply.
          The problem was solved in a very easy way - I changed the report property 'pop-up' to 'yes'. By doing that, the report gets opened in a new window and can be closed without closing the form behind it. I will certainly use your advice when confronted with that kind of problem.

          Comment

          • NeoPa
            Recognized Expert Moderator MVP
            • Oct 2006
            • 32633

            #6
            People often say that I come up with extravagantly clever solutions when the plain simple ones are staring me in the face :D
            I'm pleased you found what you wanted anyway :)

            Comment

            Working...