Results 1 to 4 of 4
  1. #1
    Dega is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Location
    Calgary, AB
    Posts
    73

    Report based on date

    I will have to generate several reports during the year and they are all based upon a departure date.

    I have a "test report" that I am working on which is driven by a query.

    The issue is that I have to go into design view of the query and change the 'criteria' to the date of departure in that column then run the report.

    Is there a simpler way to generate the report based on the date (form?) as users will not know how unless it's very easy like a combo box or button to generate the report.

    Thanks

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    You can base the report on a query that looks to a form for the criteria:

    Forms!FormName.TextboxName

    Typically you open a form for the user to input their criteria, then they click on a button that opens the report. Behind that button you can check the input for validity.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Dega is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Location
    Calgary, AB
    Posts
    73
    Thanks Paul

    That works out good and I used the date picker for validity if that's what your talking about.

    I have one more form control that needs to be included in the query. It would be a combo box with a list of destinations like, Las Vegas, Laughlin etc. (TourName)

    I suppose I would just use your example again in the design view of query again and if both those conditions are met then the report would generate.

    One last question ...

    Is it better for me to create a form page to generate several reports (room report, customs report, customer pick-up report, etc) so a user could just open that particular form and start generating the appropriate report based upon the two form controls.

    Thanks

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Sorry, I missed the reply (but keep sending people to Nevada; we need the business!). Do you have this all sorted out? I've seen several ways of displaying/choosing reports. You can have a form with the input criteria and buttons for the desired reports. I've seen people use a combo box to list reports, and the user selects from that. You can have buttons for each report, but they call up a form that gathers the user input (you pass the desired report name in OpenArgs).
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Numerical Value based on Date
    By jbarrum in forum Access
    Replies: 4
    Last Post: 03-11-2010, 01:04 PM
  2. Report based on multiple tables
    By Pimped in forum Reports
    Replies: 1
    Last Post: 12-16-2009, 04:14 AM
  3. Replies: 3
    Last Post: 09-29-2009, 07:08 AM
  4. Replies: 0
    Last Post: 07-27-2009, 07:51 AM
  5. Replies: 1
    Last Post: 02-02-2009, 05:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums