Anonymous
Anonymous asked in 電腦與網際網路程式設計 · 2 decades ago

這一行程式碼在講什麼呀?只有一行,拜託幫忙

MonthEndDate = DateAdd("m", 1, Year(QueryDate.Value) & "/" & Month(QueryDate.Value) & "/1")

4 Answers

Rating
  • 2 decades ago
    Favorite Answer

    DateAdd為日期增減函數!

    MonthEndDate = DateAdd("m", 1, Year(QueryDate.Value) & "/" & Month(QueryDate.Value) & "/1")

    DateAdd("m", 1, Year(QueryDate.Value)是輸出 QueryDate.Value + 1個月後的值

    Month(QueryDate.Value) 是輸出他的月份

    後面的 "/1" 就純粹是字串~"~

    Source(s): Me
    • Commenter avatarLogin to reply the answers
  • Anonymous
    2 decades ago

    就QueryDate.Value中的月份加一

    • Commenter avatarLogin to reply the answers
  • Lv 4
    2 decades ago

    請把整段程式碼貼出來好嗎....

    只有一行是不能完全了解的~

    • Commenter avatarLogin to reply the answers
  • 2 decades ago

    好像少ㄌ些東西ㄝ...解不出來

    • Commenter avatarLogin to reply the answers
Still have questions? Get your answers by asking now.