Use the DateAdd Function in Microsoft Access to Add or Subtract Whole Calendar Months, Years, Hours

Поделиться
HTML-код
  • Опубликовано: 19 окт 2024

Комментарии • 42

  • @cominisful
    @cominisful 2 года назад

    Omg! Googled for hours! Thank you this was too easy!

    • @599CD
      @599CD  2 года назад

      Welcome

  • @denlixzapir4096
    @denlixzapir4096 2 года назад

    Big thanks to this Big Guy. You are Great.

    • @599CD
      @599CD  2 года назад

      Thank you too!

  • @zwotakdzaneshunzhi1754
    @zwotakdzaneshunzhi1754 2 года назад

    thank you so much your videos are really helpful🥰

    • @599CD
      @599CD  2 года назад

      Glad you like them!

  • @orovalistorovalist4641
    @orovalistorovalist4641 3 года назад

    thank you very much sir Omar from Morocco.

    • @599CD
      @599CD  3 года назад +1

      You are welcome

  • @OusseynouSANKHARE
    @OusseynouSANKHARE 3 года назад +2

    God job Sir!!

    • @599CD
      @599CD  3 года назад

      Thanks

  • @primordialnecect
    @primordialnecect 2 года назад +1

    Question: let's say in a customer table you have 2 fields , SubscribeDay & ExpiryDate. Is there way to have the ExpiryDate automatic fill,(add 1 month), the moment you key in SubscribeDay. On the same table

    • @599CD
      @599CD  2 года назад +1

      Sure. See 599cd.com/AfterUpdate

  • @spudster2541
    @spudster2541 3 года назад

    Question regarding this - this really did help me out since I am building a task for work where items mailed need to be reviewed after a certain time frame. However I don't see the data for the extra time frame (15 days added) being added into the master table column. Is there a trick to pushing that to the master table?

    • @599CD
      @599CD  3 года назад

      You don't store that date in your table. You generate it with the query. Why store a date you can easily calculate?

  • @pedrolewis3987
    @pedrolewis3987 10 месяцев назад

    Good evening, I have a database with a table where among different fields, 3 are updated via query and one of these is a date field. Let me start by saying that I am a beginner and I was helped with the query.
    It works by updating the 3 fields but for the date one which is in short date format there is a problem.
    In practice, when I launch the query in the update for example from January to February it updates, but repeating the date 02/29/2024 twice more, then when updating from February to March I find the date 03/29/2024 repeated 3 times. Is there a way to prevent this from happening and get the months to update correctly? Thank you

    • @599CD
      @599CD  10 месяцев назад

      599cd.com/ask

  • @trishacalhoun-amodei4945
    @trishacalhoun-amodei4945 2 года назад

    Hi, I followed your instructions but it's not working for me. I want to add one year to a date and I followed yours perfectly and it keeps giving me an error. Can you help?? Thank you.

    • @599CD
      @599CD  2 года назад

      I get a ton of questions every day, and I don't have time to answer them all here on RUclips. Feel free to submit your question on my website at: 599cd.com/AskYT

  • @sonmezb
    @sonmezb Год назад

    Hi Richard. I have a Dateadd function in a query, which is supposed to give me 1 month + 7days after whatever end of month date is in another text box (VATDueDate: (DateAdd("m",1,[VAT Date]))+7). However, if the month is a 31 day one I get the 7th and 30 day one I get the 6th. I should get the 7th regardless. Would you know where I am going wrong? for example if the end of month date is 2022/11/30 then it returns 2023/01/06 but I expect 7th.

    • @599CD
      @599CD  Год назад

      You're adding a whole month to the month end date. If you want to go from the FIRST of the month, then you need a different formula.

  • @fdnyfish
    @fdnyfish 3 года назад

    How would I specify the 19th of next month

    • @599CD
      @599CD  3 года назад

      599cd.com/DateSerial

  • @Leicarcain
    @Leicarcain 3 года назад

    hello, 10nk you for the video, is it possible to add working days?

    • @Leicarcain
      @Leicarcain 3 года назад

      i will check codevault, 10nx

    • @599CD
      @599CD  3 года назад

      599cd.com/DateTime OR 599cd.com/MyNetWorkDays

  • @DIY-product_unboxing-reviews
    @DIY-product_unboxing-reviews 2 года назад

    @Computer Learning Zone First of All, BIG thanks for your educating and informative videos. I recently started watching your videos to get some help in MS Access and they are really helpful, easy to understand and informative.
    Now, I have a question for you seeking some help on this video. It is an extension of this process. In my database, I have a due dates and associated repeat frequencies (Annual, Bi-Annual, 3 Year, 2 Year, Monthly, Bi Monthly, Qly etc.). With the help of your video I was able to create a query and calculate the next due date for each item but I am unable to figure out how to calculate all the next due dates for entire year. For e.g if an item repeats monthly I need the due dates for the next 12 months and so on based on the repeat frequency. Would really appreciate if you can help me with this.

    • @599CD
      @599CD  2 года назад +1

      599cd.com/DateTime

    • @DIY-product_unboxing-reviews
      @DIY-product_unboxing-reviews 2 года назад

      @@599CD This is not what I was looking for. I guess I was not able to explain my requirement. Lets say I have a table with Item "A", Due Date 25 Nov 2020 and this item repeats quarterly. With the help of the query and "DateAdd" function I was able to show the next due date of 25 Feb 2021. What I am looking for is that when I run a query or use a formula it gives me the next 2 due dates as well. expected query result : Item A, Due Date 25 Nov 2020, Due Date1 25 Feb 2021, Due Date3 25 May 2021, Due Date4 25 Aug 2021.

    • @DIY-product_unboxing-reviews
      @DIY-product_unboxing-reviews 2 года назад

      @@599CD I guess I was not able to explain my requirement. Lets say I have a table with Item "A", Due Date 25 Nov 2020 and this item repeats quarterly. With the help of the query and "DateAdd" function I was able to show the next due date of 25 Feb 2021. What I am looking for is that when I run a query or use a formula it gives me the next 2 due dates as well. expected query result : Item A, Due Date 25 Nov 2020, Due Date1 25 Feb 2021, Due Date3 25 May 2021, Due Date4 25 Aug 2021.

  • @nurlianaaqilahzairee4868
    @nurlianaaqilahzairee4868 Год назад

    what about time. Like calculating if employee time in early or late. im figuring i have to do something like DateDiff("n",[TimeIn],#9:00:00 AM#) but the numbers are weird. Im new to access.

    • @599CD
      @599CD  Год назад

      599cd.com/ask

  • @stanTrX
    @stanTrX 11 месяцев назад

    Hello. Why the day/month/year order is different there?

    • @599CD
      @599CD  11 месяцев назад

      Because the USA has to do things differently than the rest of the world. Why? Who knows. It's dumb.

  • @OkSimonvich
    @OkSimonvich 3 года назад

    Hi there, I have a question on how to determine month dates on loan repayment schedule in each month form the date disbursed for loans, How can this be achieved, please assist.

    • @599CD
      @599CD  3 года назад

      Feel free to submit your question here: 599cd.com/TH

  • @akokohjoel9854
    @akokohjoel9854 3 года назад

    How can you exclude Saturday and Sunday with this method. How can it be done?

    • @599CD
      @599CD  3 года назад

      Access doesn't have a function that's equivalent to the Excel NETWORKDAYS function (to exclude weekends and holidays). I wrote one. It's in my Code Vault 599cd.com/CV and I also cover it in my DateTime Seminar: 599cd.com/DateTime