Results 1 to 7 of 7
  1. #1
    webisti is offline The Wisher
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    115

    weekdays versus weekend

    hi
    I do have a report that will show me the client orders for that day. ex in the query that builds the Today`s orders table the criteria in the order_date is easy : Date()
    How can I make it possivble that when the check is done on monday it also checks all client orders since Friday.

    regards

    Webisti

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Maybe:

    BETWEEN IIf(Weekday(Date())=2,Date()-2, Date()) AND Date()
    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
    webisti is offline The Wisher
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    115
    Hi sorry for returing again but the formula will show me all mondays.. I want just the orders since last friday if today is monday.. otherwise date()
    Is there a ay to o that?

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    You want only Sat and Sun records?
    Try:
    BETWEEN IIf(Weekday(Date())=2,Date()-2, Date()) AND Date()-IIf(Weekday(Date())=2,1,0)
    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.

  5. #5
    webisti is offline The Wisher
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    115
    Hi June
    Actually I want on monday to include all orders since friday (including Sat, Sun), the point is that is that by applying the Between formula it shows me all mondays and all fridays (the entire last two months) But what I want is that if today is monday I want the order since last friday only, not the onews before. Just since last friday until monday, otherwise in other days just the day().
    Any ideas?

    Thanks

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    I don't see how that expression could return two months of records.
    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.

  7. #7
    webisti is offline The Wisher
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    115
    I am also thinking about it but may be will try again to rebuild the query step by step...

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

Similar Threads

  1. Replies: 1
    Last Post: 02-14-2013, 04:12 PM
  2. VBA Versus Macro
    By RapidRepairArnold in forum Programming
    Replies: 3
    Last Post: 02-04-2013, 05:38 PM
  3. how do I not record date of the weekend or holiday?
    By fabiobarreto10 in forum Forms
    Replies: 4
    Last Post: 06-12-2012, 09:33 AM
  4. Total divided by weekdays in a month
    By normie in forum Access
    Replies: 1
    Last Post: 03-22-2012, 07:09 PM
  5. Query Help (Weekdays)
    By mattw in forum Queries
    Replies: 10
    Last Post: 10-19-2010, 12:11 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