Recent content by fst

  1. F

    Need Some Help Please-how To *include Weekends And Holidays With Previous Work Day

    arenlcp in the query 'qry_saag99_step2, if I put the date #6/01/2020# (Monday), the query result shows all data for that date rather data from 5/29-5/31 (fri-sun)? however, I noticed if I put #5/29/20# in the step2 query it'll combine 5/29-5/31 which is the opposite of what I was looking for...
  2. F

    Need Some Help Please-how To *include Weekends And Holidays With Previous Work Day

    arnelgp, thanks, i'll check it out today and get back to everyone.
  3. F

    Need Some Help Please-how To *include Weekends And Holidays With Previous Work Day

    so I tried the function and created a query similar to what you noted arnelgp. in the query, I wanted to see what results would happen if I put Tuesday (5/26/20) to simulate the date as that specific Tuesday but I got results from the same day. so I changed it to simulate the Monday, memorial...
  4. F

    Need Some Help Please-how To *include Weekends And Holidays With Previous Work Day

    thanks for your assist and help with your expertise arnelgp. i'll let you know. (y)
  5. F

    Need Some Help Please-how To *include Weekends And Holidays With Previous Work Day

    thank you everyone for chiming in :giggle: if Friday through Monday was a 4 day weekend returning to work on Tuesday, the total production figures would all be under Friday. like arnelgp stated, I did create a holiday table but wasn't certain if this could be written up in sql/query or a...
  6. F

    Need Some Help Please-how To *include Weekends And Holidays With Previous Work Day

    sorry for not being clear. i'll try an example. so lets say my job does x number of widgets. the data is collected at end of the day. so today, I would be pulling yesterday's total number of widgets. I only want to pull prior weekday. any work done on a weekend would be counted for the Friday...
  7. F

    Need Some Help Please-how To *include Weekends And Holidays With Previous Work Day

    sorry for the confusion. if today was Monday, I would want to pull the previous weekday, in this case Friday but also include saturday/sunday. however, if the Monday ends up being a holiday like memorial day, if I run my database coming back form work on Tuesday the query or module would look...
  8. F

    Need Some Help Please-how To *include Weekends And Holidays With Previous Work Day

    did a few searches and majority of the searches were ones excluding weekends and holidays. so im trying to put together a query where I need to pull prior business day (mon-fri). where im trying to figure out is if I can do this in a query/SQL or in a module? basically I need to return prior day...
  9. F

    including weekends & certain holidays into friday

    Sorry, i had thought i deleted this thread. I was able to find a solution to my question in another thread. Ill mark this as solved
  10. F

    count weekdays into friday

    oh! it works! I forgot I changed the 9/23 to 9/29 holiday! stupid me!
  11. F

    count weekdays into friday

    I copied your code and also changed the where to show #9/24/2019# and somehow still only get 9/23? maybe theres something up with a date format in either the holiday table and/or the table its pulling from
  12. F

    count weekdays into friday

    this is what I have: Public Function fncIsPrevious1(dteFieldValue As Variant, ByVal dteReference As Date) As Boolean Dim I As Integer Dim dteDate As Date fncIsPrevious1 = False If IsEmpty(dteFieldValue) Or IsNull(dteFieldValue) Then Exit Function I = -1...
  13. F

    count weekdays into friday

    let me double check
  14. F

    count weekdays into friday

    the end goal is to be able to run a task scheduler every morning then have the data linked to excel that runs a refresh macro that populates the data based for the prior workday.
  15. F

    count weekdays into friday

    it returns only 9/23/19
Top Bottom