Creating Excel's EOMONTH Function in Microsoft Access VBA: Date Manipulation Made Easy

Поделиться
HTML-код
  • Опубликовано: 5 фев 2025
  • In this Microsoft Access tutorial, I'm going to teach you how to create a replica of Excel's EOMONTH function using VBA. You'll learn how to write a custom function that will allow you to find the end-of-month date based on a given date and the number of months you want to add or subtract. This will offer you a seamless way to extend Excel's capabilities right into your Access databases, giving you more control and flexibility over your date calculations. Stay tuned to discover how to bring this useful Excel feature into your Access toolkit.
    Ethan from San Marcos, Texas (a Platinum Member) asks: I'm in the process of transitioning numerous Excel spreadsheets to a Microsoft Access database. One function that we frequently use in our spreadsheets is EOMONTH. Is there a way to replicate this functionality within Microsoft Access?
    BECOME A MEMBER:
    RUclips: / @599cd
    or My Site: 599cd.com/THMe...
    LEARN MORE:
    Access EOMONTH: 599cd.com/EOMONTH
    PREREQUISITES:
    First Day of Month: 599cd.com/Firs...
    Intro to VBA: 599cd.com/Intr...
    Create Function: 599cd.com/Crea...
    RECOMMENDED COURSES:
    Access Expert 27: 599cd.com/ACX27
    Developer: 599cd.com/Deve...
    FREE TEMPLATE DOWNLOADS:
    TechHelp Free Templates: 599cd.com/THFree
    Blank Template: 599cd.com/Blank
    Contact Management: 599cd.com/Cont...
    Order Entry & Invoicing: 599cd.com/Invo...
    More Access Templates: 599cd.com/Acce...
    ADDITIONAL RESOURCES:
    FREE Access Beginner Level 1: 599cd.com/Free1
    How to Use Access in 30 Minutes: 599cd.com/30Mi...
    $1 Access Level 2: 599cd.com/1Dollar
    Donate to my Tip Jar: 599cd.com/TipJar
    Get on my Mailing List: 599cd.com/YTML
    Contact Me: 599cd.com/Contact
    TechHelp: 599cd.com/Tech...
    Consulting Help: 599cd.com/DevNet
    Twitter: / learningaccess
    en.wikipedia.o...
    products.offic...
    microsoft.com/...
    KEYWORDS:
    access 2016, access 2019, access 2021, access 365, microsoft access, ms access, ms access tutorial, #msaccess, #microsoftaccess, #help, #howto, #tutorial, #learn, #lesson, #training, #database, Excel EOMONTH Function in Access, Last Day of Month, EOMONTH in Access, DateSerial, End-of-Month Calculations, Access Date Functions, EOMONTH Function, Transitioning to Access, Excel Functions in Access, Date Manipulation in Access, Replicate Excel in Access
    QUESTIONS:
    Please feel free to post your questions or comments below. Thanks.

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

  • @Shadow.Dragon
    @Shadow.Dragon Год назад

    Thanks for the video Richard! It's always fun to see how the "legos" can be put together to build a function!

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

    that is just great 👏

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

    Thanks Richard,

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

    Yup

  • @christopherline5836
    @christopherline5836 6 месяцев назад

    Hi Richard<
    Thanks for the excellent video. I found an issue with this EOMONTH that I hope you will be able to provide an answer to. I created the EOMONTH function by following your instructions and it works perfectly - Thank You. However, when I use it in a form, then use it again in a Report, any fields that do not have a date (so basically Null values) have the text #Type! displaying and I have tried everything I can think of (conditional formatting etc.) but I cannot get rid of it. Please can you help as the Reports look horrible with this #Type! in every blank field!

    • @jensonthomas
      @jensonthomas 4 месяца назад

      I would try something like IIf IsNot Null (me.[Field]) Then EOMONTH Else (me.[Field]) End If.

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

    First comment