Results 1 to 7 of 7
  1. #1
    cap.zadi is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2011
    Location
    KSA
    Posts
    481

    Add Plus & Minus Date Range.

    Dear Sir

    Kindly advise for the below format, how to extend the the date range from the given date on form to extract results from a query.



    [Forms]![QcertDetails].[PDate]

    Requirement: The data shall be displayed in range of 10 days plus and minus from "PDate".

  2. #2
    jwhite is offline Competent Performer
    Windows 10 Access 2013 32bit
    Join Date
    Dec 2012
    Location
    North Carolina
    Posts
    349
    Google the DateAdd() function and "date range".

  3. #3
    cap.zadi is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2011
    Location
    KSA
    Posts
    481
    Dear

    Thanks for your feedback. Bye the way, I knew that. If could understand the given examples then shall not ask here.

    Anyhow, thanks for your valuable time.

    Regards

  4. #4
    Micron is offline Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    Try
    BETWEEN DateAdd("d", -10, [Forms]![QcertDetails].[PDate]) AND DateAdd("d", 10, [Forms]![QcertDetails].[PDate])
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  5. #5
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    Perhaps if you showed us what you've tried already, we could assist.

  6. #6
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,932
    If could understand the given examples
    what examples? what don't you understand?

  7. #7
    cap.zadi is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2011
    Location
    KSA
    Posts
    481
    Hi

    This works.

    Thanks for the help.

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

Similar Threads

  1. Replies: 4
    Last Post: 01-04-2017, 07:34 PM
  2. DATE Minus 1 day
    By EileenAchil in forum Queries
    Replies: 2
    Last Post: 12-29-2016, 02:37 AM
  3. Replies: 3
    Last Post: 01-26-2016, 01:56 PM
  4. minus date wise sales a=n?
    By alex_raju in forum Access
    Replies: 1
    Last Post: 07-30-2011, 01:23 PM
  5. Date Add 26 weeks minus 1 day
    By ker9 in forum Queries
    Replies: 3
    Last Post: 07-26-2011, 01:20 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