Report including manually entered parameters

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MikeMikeCH
    New Member
    • Jul 2017
    • 41

    Report including manually entered parameters

    Dear Community

    In my database I have several seminaries with several dates and participants.

    I would like to make a report for the user of the database in the front end. The report shall consist a "manually defined" (meaning in the front end opens up a popup window in which the user can choose each existing seminary out of a list) seminary with all the participants. That brings me to two problems:

    1. How can I make such a popup window before my report opens up?
    2. How can I then make, that the chosen seminary out of the list is taken as the basis for my report? It somehow has to be sent to the query that creates the report information or even filter a report with all seminaries and all participants.

    Can anybody help me doing that?

    Thanks a lot!!

    Mike
  • ADezii
    Recognized Expert Expert
    • Apr 2006
    • 8834

    #2
    1. In your Main Form, create a Command Button that will Open an Input Form.
    2. In this Input Form, create a Combo Box that will display all Seminaries alphabetically along with a hidden, Primary Key Field.
    3. Create a Report showing all the Participants, for all Dates, for all Seminaries. The Record Source for this Report will be qryParticipants . Look at it, specifically the Relationships among the three Tables involved.
    4. Create a Command Button on this Input Form. In the Click() Event of this button, Open the previously created Report using the OpenReport() Method but have the WHERE Argument point to the Seminary selected in the Combo Box.
    5. The Report will Open displaying all Participants for all Dates for the Seminary selected on the Input Form.
    6. I do realize that this is a lot to absorb, so I Attached a simple Demo for you in order to get you started.
    7. Good Luck with your Project - any questions, please feel free to ask.
    Attached Files

    Comment

    • MikeMikeCH
      New Member
      • Jul 2017
      • 41

      #3
      Dear ADezii

      Thanks a lot for your answer, especially for the demo! I could almost manage it. Unfortunately, when I click on my Run-Button (cmdOpenReport) , a Popup-Field shows up where I am asked to put in manually the Seminar_ID. If I negate it and just click OK, the report shows up but is empty.

      I allowed myself to send you my situation in a pdf. Do you maybe find the mistake?

      Thanks a lot!

      Mike
      Attached Files

      Comment

      • ADezii
        Recognized Expert Expert
        • Apr 2006
        • 8834

        #4
        Sounds like you have not set the Record Source for the Report which is why [Seminar_ID] is not being recognized. The Record Source of the Report must include [Seminar_ID] and it must return ALL Records. See what you can do, and if you are still having problems, can you Upload your DB stripped of any sensitive/confidential information?

        Comment

        • MikeMikeCH
          New Member
          • Jul 2017
          • 41

          #5
          Dear ADezii

          Wow, you are really great! I put the Seminar_ID into the source of my record and it works.

          This is amazing!! Thank you so much!!!!

          Mike

          Comment

          • ADezii
            Recognized Expert Expert
            • Apr 2006
            • 8834

            #6
            You are quite welcome, Mike.

            Comment

            Working...