Results 1 to 4 of 4
  1. #1
    jmorse is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2011
    Posts
    11

    Month To Date Query

    Does anyone have ideas on how to get a Month to Date total from a query using (1) date?

    example:


    I enter 3/5/2011 in a form and the query returns the totals for every entery in a field back to 3/1/2011.

  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,521
    You should find a function to find the first day of the month here:

    http://www.pacificdb.com.au/Support/...hfunctions.htm

    That and a Between clause should get you your result.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    jmorse is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2011
    Posts
    11
    That worked great. Thanks for your help.

  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,521
    No problemo; there are a lot of handy functions there.
    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. Track capacity changes month by month
    By Nils in forum Database Design
    Replies: 1
    Last Post: 02-18-2011, 03:03 PM
  2. Replies: 5
    Last Post: 11-15-2010, 06:12 PM
  3. Replies: 4
    Last Post: 10-27-2010, 02:57 PM
  4. Replies: 3
    Last Post: 12-23-2009, 08:50 AM
  5. SQL Query by day to end of month
    By tcasey in forum Queries
    Replies: 0
    Last Post: 10-07-2008, 09:55 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