Results 1 to 3 of 3
  1. #1
    xtrareal22 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Oct 2013
    Posts
    27

    Criteria for a monthly sale

    I have a daily sales query.The criteria for date of sale is=Date() to show the sales for that day.I want another query to show the sales for that month.


    So if all the sales took on december,i want the monthly query to display all the sales that took place for that month only.What do i do?what will my criteria be?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Try:

    SELECT * FROM tablename WHERE Format([date of sale],"YYYYMM") = [enter YYYYMM];
    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.

  3. #3
    xtrareal22 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Oct 2013
    Posts
    27
    thank you

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

Similar Threads

  1. Sale Silver Jewelry
    By azhar2006 in forum Database Design
    Replies: 2
    Last Post: 12-01-2013, 09:00 AM
  2. Group results to show last sale
    By tweety in forum Queries
    Replies: 21
    Last Post: 04-30-2013, 08:48 AM
  3. The easiest way to make a point of sale
    By eskybel in forum Queries
    Replies: 79
    Last Post: 11-20-2012, 07:30 AM
  4. Replies: 6
    Last Post: 11-10-2012, 09:49 PM
  5. Adding employee hours done for each completed sale
    By crxftw in forum Database Design
    Replies: 2
    Last Post: 06-16-2011, 12:24 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