Results 1 to 5 of 5
  1. #1
    Optimus_1 is offline Novice
    Windows 98/ME Access 2002
    Join Date
    May 2010
    Posts
    13

    Define a date range for a report - Help


    Hello

    I want to produce a report from my table data but have the option to select a date range, Am i best to do this using a form?. If so how is it best done.

    Thanks
    Nat

  2. #2
    SoftwareMatters is offline Access VBA Developers
    Windows XP Access 2003
    Join Date
    Mar 2009
    Location
    Dorset
    Posts
    274
    Quote Originally Posted by Optimus_1 View Post
    Hello

    I want to produce a report from my table data but have the option to select a date range, Am i best to do this using a form?. If so how is it best done.

    Thanks
    Nat
    This is how I would do it:
    1. Create a query with the relevant fields in including the date field you want to filter on. The criteria for the date field should target a field on a form. see below

    2. Create the report from the query.

    3. Create a form called MyForm with a button that opens the report and 2 date fields called Start and End

    4. The criteria for the date field will be:

    >= [Forms]![MyForm]![Start] And <= [Forms]![MyForm]![End]

  3. #3
    Optimus_1 is offline Novice
    Windows 98/ME Access 2002
    Join Date
    May 2010
    Posts
    13
    Hello,

    Thanks for your help, WHat do you mean by criteria?.
    sorry for my lack of knowledge

    Many thanks

  4. #4
    SoftwareMatters is offline Access VBA Developers
    Windows XP Access 2003
    Join Date
    Mar 2009
    Location
    Dorset
    Posts
    274
    WHat do you mean by criteria?.
    When you put the query in design view there is a row called criteria.

  5. #5
    Optimus_1 is offline Novice
    Windows 98/ME Access 2002
    Join Date
    May 2010
    Posts
    13
    Aha! should of known that really!. Many thanks, have sorted it.

    Thanks Again

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

Similar Threads

  1. Daily reports from date range tables?
    By sparker in forum Database Design
    Replies: 0
    Last Post: 03-29-2010, 11:07 AM
  2. Sum of Values over date range
    By bosnian in forum Queries
    Replies: 1
    Last Post: 01-12-2010, 03:41 PM
  3. Replies: 3
    Last Post: 09-29-2009, 07:08 AM
  4. Count Dates within Date Range
    By eckert1961 in forum Queries
    Replies: 2
    Last Post: 03-08-2009, 10:58 AM
  5. Search form with a date range
    By mantro174 in forum Forms
    Replies: 1
    Last Post: 02-11-2009, 10:45 PM

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