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

    design view need to see the dates and Number after I enter a specific number

    Hello,

    I created a parameter to be able to enter a number in design view. In my table, I have dates field and a field called numbers. In m parameter, I enter the number 439
    It pulls all the times 439 comes out associated with the date the number it came on this is great. However, I now want it to see the number that came 2 days before this numer date and 2 days after this number date



    Example I enter 439 and it came on 10/1/2000, 1/2/2006. I want to also see the numbers that came on 2 days before and after these dates as well. I have been away for awhile on duty so my access skills are not the best.

    enter 439 it came on 10/1/2000 and 1/2/2006
    what number came on 9/30/2000 and 12/31/2005 once i put the number i want to see when i enter 439 in the paramter. Whatever number i enter I want to see what came 2 days before and two days after


    Thank you in advance

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,724
    It sounds like you are dealing directly with a table??

    I suggest you create a query but we should see your table design before making guesses.
    Perhaps you could show us the table design, and a few records.

  3. #3
    TheSpecialist is offline Advanced Beginner
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2015
    Location
    Georgia
    Posts
    47
    DTE 3 digits
    11-Jun-17 675
    10-Jun-17 405
    09-Jun-17 228
    08-Jun-17 064
    07-Jun-17 022
    06-Jun-17 701

  4. #4
    TheSpecialist is offline Advanced Beginner
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2015
    Location
    Georgia
    Posts
    47
    example If I put in 675 when I run the query I want to see the numbers and the dates that came 2days before and 3 days after so I would like to see what came on june 10 and 9.
    DTE 3 digits
    11-Jun-17 675
    10-Jun-17 405
    09-Jun-17 228
    08-Jun-17 064
    07-Jun-17 022
    06-Jun-17 701

  5. #5
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,724
    I understand 2 days before 9-Jun-17 and 10-Jun-17.
    But ?? What comes 3 days after 11-Jun-17 in your table??

  6. #6
    TheSpecialist is offline Advanced Beginner
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2015
    Location
    Georgia
    Posts
    47
    12-Jun-17 198
    13-Jun-17 657
    14-Jun-17 259

  7. #7
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,724
    Where did these come from???
    If they are in the table, you might have included those in the last post.

  8. #8
    TheSpecialist is offline Advanced Beginner
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2015
    Location
    Georgia
    Posts
    47
    It was from a table
    I just need to be able to pull te number from a number I enter

  9. #9
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    This would be two queries:
    - query 1 - pull in the date for the number you have entered
    - query 2 - bring in query 1 and the table, do not join them. Select all records from the table where the date is
    Between query1.date - 2 AND query1.date + 3

  10. #10
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    A better way to do this is to have a main form where you select the number and filter on that so that the date is displayed in a textbox on the form. Then create a subform to display the records with the date criteria mentioned above, with the query referencing the date field on the form instead of using query 1.

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

    I sent you a private message

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

Similar Threads

  1. Replies: 6
    Last Post: 02-06-2015, 12:45 PM
  2. Replies: 5
    Last Post: 05-07-2014, 09:45 AM
  3. Replies: 2
    Last Post: 01-28-2014, 10:13 PM
  4. Replies: 1
    Last Post: 10-22-2013, 07:53 PM
  5. Replies: 6
    Last Post: 03-13-2013, 03:03 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