Results 1 to 5 of 5
  1. #1
    Nathan Plemons is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    8

    Some questions about the date range

    I have a series of information that I would like to be able to essentially count occurrences of a specific item, within a date range.

    I have a database that contains columns for DATE, Quantity, and Model number, there is other information gathered but these are the ones I'm working with currently.

    I can use the query wizard to create a simple query. If I select model, and quantity, then select next it asks if I want a detailed or a summary. I choose summary and from the summary options I can choose SUM of quantity.

    This gives me a very simple result with 2 columns, a model number and a total quantity. This works perfectly, exactly the way I want it to. Now, to add the date range function.

    The only way I can get it to prompt for a date range is to add the date column to the query, choose unique day and time, and then put Between [Start Date] And [End Date] in the criteria of the date field. This is all well and good, it prompts me beautifully for a start and end date, but the totals it returns are then broken apart by specific day which I don't want. All I need the date range to do is narrow down the query, not do any grouping, etc.



    I feel like it should be simple but I'm not having much luck so I figured I'd ask the experts.

  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,642
    In design view, change "Group By" to "Where".
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Nathan Plemons is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    8
    Well I would have swore I tried that a hundred times and it didn't work, but it works now. 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,642
    I pushed the magic button that makes it work for you.

    Happy to help.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    Nathan Plemons is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    8
    Based on my previous experiences with some MS products, I wouldn't doubt that a bit.

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

Similar Threads

  1. Date range not working
    By victoria61485 in forum Queries
    Replies: 4
    Last Post: 09-08-2011, 08:56 AM
  2. Date range Q
    By markjet in forum Queries
    Replies: 13
    Last Post: 07-18-2011, 01:00 PM
  3. Run query by date range
    By ARickert in forum Access
    Replies: 2
    Last Post: 06-23-2011, 10:54 AM
  4. Date range
    By eacollie in forum Queries
    Replies: 7
    Last Post: 06-05-2011, 03:38 PM
  5. Date range help!!
    By bananatodd in forum Access
    Replies: 26
    Last Post: 10-18-2010, 01:57 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