Results 1 to 2 of 2
  1. #1
    patchesohouli is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Feb 2016
    Posts
    17

    Query that seperates the date?

    Hi,


    Every week a file will be imported into a table which breaks out into three separate queries, depending on the pay frequency. Within that, I know one of the pay frequencies will have two calendar dates associated, another will have two dates, and a third will have four dates. These dates will be changing each week, so it’s not like I can set the criteria for a specific date.

    I need to further break these down so I have a separate query for each pay frequency with only one pay date. Therefore, I essentially need 8 separate queries. Is there any way for access to do that? It will need to recognize that a pay frequency has two distinct calendar dates associated, and separate it out by the different dates.

    There should be separate queries for:

    Biweek 26 – 1/1/2016
    Biweek 26 – 1/15/2016
    Weekly – 1/1/2016
    Weekly – 1/8/2016
    Weekly – 1/15/2016
    Weekly – 1/22/2016
    Ect.

    But again, those calendar dates will change constantly. The number per pay frequency however will remain constant.

  2. #2
    davegri's Avatar
    davegri is online now Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,706
    Attachment 24430 will show you how VBA can create queries with dates taken from form textboxes. The main form, frmQueries, is unbound, while the subform is bound to the queries created.
    This should get you started.

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