Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2004
    Posts
    16

    Unanswered: query month sales

    I've got a Sales table which includes DateOfSale.
    What i want the query to do, is to ask the user for a number which will represent a month and then it will give a list of the sales within that month....

    how can i do it?

  2. #2
    Join Date
    Jan 2003
    Location
    Rockville, MD
    Posts
    179
    Hi toxi,

    If DateOfSale is a date field, you could try this:

    SELECT tbl_Sales.*
    FROM tbl_Sales
    WHERE (((Month([tbl_Sales].[DateOfSale]))=[Enter Month (1-12)]));

    JT

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •