Results 1 to 11 of 11
  1. #1
    keiath is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    162

    Reports by selecting a date range

    Hi

    Bit new to the reporting part of this program

    I want to know is there a way when you click the report it asks for a start date and end date, for it to report on dates within dates selected base on a dates in a field a table.

    Hope that Makes Sense

    Thanks

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Make your Report based on a Parameter Query, i.e. in your Query that the Report is based on, enter this in your Criteria section under that Date field:
    Between [Enter Start Date] and [Enter End Date]

    Then whenever you run this Query (or any Report based on this Query), it will prompt you to enter a Start and End Date, and report accordingly.

  3. #3
    keiath is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    162
    Thanks that worked perfect, one extra question I want to do another report but this time not by date but by selecting from a combo box a "Managers" name, is this done in the same sort of way?

  4. #4
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    You cannot use a Parameter Query to do something like that directly, without the use of a Criteria Selection Form.

  5. #5
    keiath is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    162
    Thanks i will have to see how to do that

  6. #6
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    If you search this site or Google it, you should be able to find a bunch of information on it.
    If you have any troubles implementing it, post back here.

  7. #7
    keiath is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    162
    Okay I got the form so I can now select what manager i want the report based on, and on click it run the query, the query gives me the correct information, the problem is, is how do I then generate a report?

    I tried basing the report on the query but when i run that it not opening the form to select to run the query

  8. #8
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    You should be able to do it something like this: http://www.techrepublic.com/blog/mic...-access-form/#.
    But instead of having the command button open your query, have it open a Report based on your query.

  9. #9
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,644
    What do you mean 'not opening the form'? The form should already be open, then open the report.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  10. #10
    keiath is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    162

    Red face Report

    Quote Originally Posted by JoeM View Post
    You should be able to do it something like this: http://www.techrepublic.com/blog/mic...-access-form/#.
    But instead of having the command button open your query, have it open a Report based on your query.

    Hi Got it working thanks

  11. #11
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Great! Glad to hear it!

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

Similar Threads

  1. export data by selecting date range
    By gpeamy in forum Access
    Replies: 5
    Last Post: 11-06-2013, 10:32 PM
  2. Reports with Date Range in Navigation Form
    By crix_17 in forum Reports
    Replies: 0
    Last Post: 08-07-2013, 05:21 AM
  3. Selecting from specific Date and Time range
    By LindaRuble in forum Programming
    Replies: 1
    Last Post: 05-15-2013, 07:37 AM
  4. Replies: 5
    Last Post: 12-06-2010, 09:29 AM
  5. Daily reports from date range tables?
    By sparker in forum Database Design
    Replies: 0
    Last Post: 03-29-2010, 11:07 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