Results 1 to 3 of 3
  1. #1
    TheSpecialist is offline Advanced Beginner
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2015
    Location
    Georgia
    Posts
    47

    In my design view I want a parameter...

    In my design view under my date section. I want to be able to put lets say 6/5/2016 and I want it to show me that date and 2 days before and two days after that date. How can I do that for one of my parameters



    Thank you

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,521
    select * from table where [MyDate] between dateAdd("d",-2,[Enter Date]) and dateAdd("d",2,[Enter Date])

  3. #3
    TheSpecialist is offline Advanced Beginner
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2015
    Location
    Georgia
    Posts
    47
    Ranman,

    Thank you I want to know if I enter a number because I want to see the code for the order of shoes but I also want to see that code and the order that came two before and 1 day after. How would I write my parameter in design view

    For instance when I enter the code 201 I want to see the code that came before and 1 day after when ever I enter that code in my database
    SELECT [All everything].ID, [All everything].YourDate, [All everything].MoonPhaseYourNumber, [All everything].[YourDate 3 4 5], [All everything].YourTable, [All everything].[Cash3 table], [All everything].Cash4Table, [All everything].Cash4YourNumber, [All everything].GAFiveTable, [All everything].GAFiveYourNumber
    FROM [All everything];





    This is my sql code so far

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

Similar Threads

  1. Replies: 4
    Last Post: 10-29-2015, 01:46 PM
  2. Replies: 6
    Last Post: 05-09-2014, 09:03 AM
  3. Replies: 6
    Last Post: 03-08-2014, 12:47 PM
  4. Replies: 5
    Last Post: 12-03-2013, 01:25 PM
  5. Replies: 1
    Last Post: 02-28-2013, 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