Results 1 to 3 of 3
  1. #1
    Grooz13 is offline Advanced Beginner
    Windows 7 Access 2007
    Join Date
    Aug 2010
    Posts
    97

    I want a query to return element from this week


    I want to get the Price sums of the $ we did this week so I'm trying to query the db where the Sold_Date = this week but i don't know what is the query I must do for the query to every job sold this week

    I tried Partdate("w",[mydate])

  2. #2
    Ted C is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jun 2010
    Posts
    66
    Quote Originally Posted by Grooz13 View Post
    I want to get the Price sums of the $ we did this week so I'm trying to query the db where the Sold_Date = this week but i don't know what is the query I must do for the query to every job sold this week

    I tried Partdate("w",[mydate])

    Sounds like you need something along the lines of...

    Code:
    WHERE Sold_Date Between DateAdd("d",Weekday(Date())-7,Date()) And DateAdd("d",7-Weekday(Date()),Date())

  3. #3
    Grooz13 is offline Advanced Beginner
    Windows 7 Access 2007
    Join Date
    Aug 2010
    Posts
    97
    thx but I found my answer which is :

    Code:
    PartDate("ee";[Sold_Date])= PartDate(Date()) And Year([Sold_Date]) = Year(Date())

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

Similar Threads

  1. Replies: 1
    Last Post: 07-27-2010, 09:47 AM
  2. Group by Week in a Crosstab Query
    By NMJones in forum Access
    Replies: 1
    Last Post: 06-24-2010, 04:09 PM
  3. Return all records from Query
    By ysrini in forum Queries
    Replies: 1
    Last Post: 01-15-2010, 09:52 PM
  4. Return Record # In Query
    By redwinger354 in forum Access
    Replies: 1
    Last Post: 09-15-2007, 01:08 PM
  5. query problem, oppointments for one week
    By keithsrobinson in forum Queries
    Replies: 2
    Last Post: 02-18-2006, 02:28 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