Results 1 to 2 of 2
  1. #1
    Stefan.Doyle is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Nov 2016
    Posts
    1

    Post Query using a date

    So i have a database set up using the following;

    ID
    First Name
    Surname


    Employee Number
    L1 Training
    L1 Training Complete
    L1 Training Refresh
    L2 Training
    L2 Training Complete
    L2 Training Refresh

    I would like to create a query that shows the results of a search using L1 Training Refresh, but i would like to show results where that date is withing a week of the search.

    So if i was to use the search today it would show any results where the date is 13/11/16 through to 20/11/16.

    Is there a way of doing this? I'm abit of a new comer to access.

    Thanks for any help in advance

  2. #2
    Micron is offline Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    There are a few ways to do this, depending on how you are providing the date now. Before going too much farther, you might want to think about your design. There are clues in your post that suggest that there are or will be name issues and normalization. I say that because you appear to be using spaces in your names, using reserved words for names, and it looks like you have unrelated data in the same table. I/we can provide some links for further guidance on that if you need them.
    To simply answer your question, I'll presume you are only supplying the beginning date as a date from your table (which also should not be in there). In that case, the DateAdd function should do what you want. The second date would be
    DateAdd("d", 7, [someDate]) or DateAdd("ww",1,[someDate])
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Replies: 6
    Last Post: 03-02-2016, 12:58 PM
  2. Replies: 3
    Last Post: 12-02-2014, 07:58 PM
  3. Replies: 3
    Last Post: 03-11-2014, 07:32 PM
  4. Replies: 5
    Last Post: 12-12-2013, 12:14 PM
  5. Replies: 3
    Last Post: 08-21-2012, 03:05 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