Counting number of months in current fiscal year - InfoPath Dev
in

InfoPath Dev

Counting number of months in current fiscal year

Last post 07-02-2014 06:47 AM by Flossie2003. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 06-26-2014 10:46 AM

    Counting number of months in current fiscal year

    Hello All,

    Thank you in advance for your help. I love this forum it has helped me in so many ways. Normally I am able to find the answer to my Infopath "How to's" .  Except for this issue. I have been searching for days and can't seem to come up with an answer. 

    What I'm trying to do.  I have two date pickers (StartDate & EndDate). What I would like to be able to do is have a text box that counts the number of months in the current fiscal year.  Fiscal year is July 1st - June 30th.  I want it to count the full months of the start & end.  I would like this without using code.

    Examples:

    StartDate = 07/25/2014

    EndDate = 10/3/2014

    Answer = 4 months

    StartDate = 07/15/2014

    EndDate = 06/30/2015

    Answer = 12 months

    Thank you,

    Flossie

  • 06-26-2014 11:23 PM In reply to

    Re: Counting number of months in current fiscal year

    Hi Flossie2003,

    I have tried this before but wasn't able to get a concrete solution, since this is one of the limitations for SharePoint querying. A workaround you can proceed with, if you are dealing with a few forms, is a hide and show technique for the repeating table on your InfoPath form. If you are dealing with a lot of forms, then a codeless approach I would suggest is by promoting the month and year as separate columns. This way you could filter your query by month and year, which should only return the filtered values. Does this make sense?

    Regards,

    Don Stephen Lambatin / Support Engineer
    Qdabra Software
  • 07-02-2014 06:47 AM In reply to

    Re: Counting number of months in current fiscal year

    Thank you for the quick response, donstephen. I will try your approach. Flossie
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.