<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>InfoPath 2010 Max ID Field value and reset Tracking# to 1 if first record for fiscal year</title><link>https://www.infopathdev.com:443/forums/thread/116486.aspx</link><pubDate>Tue, 13 Jun 2017 16:37:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116486</guid><dc:creator>BrianAdams</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116486.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=116486</wfw:commentRss><description>&lt;p&gt;I have a requirement to reset the Tracking# field of a list to 1 at the first record for a new fiscal year. The current formula for the Tracking# field is &amp;quot;=&amp;quot;FY&amp;quot;&amp;amp;(YEAR(Created+92)&amp;amp;REPT(&amp;quot;0&amp;quot;,6-LEN(ID))&amp;amp;ID)&amp;quot;, example &amp;quot;FY2018000001&amp;quot; would be the first record for fiscal year 2018. Fiscal year is 1 Oct to 30 Sep. I would also like to reset the Tracking# to eliminate all the test records auto generated in the ID field, to get a visible count for the user to see how many records have been entered for the year. I can see being able to edit the field to eliminate gaps, but it needs to calculate the next value in the Tracking# field. I believe it would need to use a function for the highest value in the ID field and then look at the corresponding Tracking# field and then add 1, or making another field to keep track of the next value in the tracking field and then concat the fields to make the Tracking# field&lt;/p&gt;&lt;p&gt;this is an example of the values for the ID and Tracking# fields&lt;/p&gt;&lt;font face="Times New Roman" size="3"&gt;

 &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
 &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
 &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
  &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
  &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
 &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
 &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
  &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
  &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
 &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
 &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
  &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
  &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
 &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
 &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
  &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
  &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
 &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
 &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
  &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
  &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
 &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
 &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
  &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
  &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
 &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
 &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
  &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
  &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
 &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
 &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
  &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
  &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
 &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
 &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
  &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
  &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
 &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
 &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
  &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
  &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
 &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
 &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
  &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
  &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
 &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
 &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
  &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
  &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
 &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
 &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
  &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
  &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
 &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
 &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
  &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
  &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
 &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
 &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
  &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
  &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
 &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
 &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
  &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
  &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
 &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
 &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
  &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
  &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
 &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
 &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
  &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
  &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
 &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
 &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
  &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
  &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;
 &lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;table style="width:90pt;border-collapse:collapse;" cellspacing="0" cellpadding="0"&gt;&lt;tr style="height:15.75pt;"&gt;&lt;td style="border-width:0px 0.5pt 1.5pt 0px;border-style:none solid solid none;border-color:white;width:21pt;height:15.75pt;"&gt;&lt;strong&gt;&lt;font color="#ffffff" face="Calibri" size="3"&gt;ID&lt;/font&gt;&lt;/strong&gt;&lt;/td&gt;&lt;td style="border-width:0px 0.5pt 1.5pt 0px;border-style:none solid solid none;border-color:white;width:69pt;"&gt;&lt;strong&gt;&lt;font color="#ffffff" face="Calibri" size="3"&gt;Tracking#&lt;/font&gt;&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height:15.75pt;"&gt;&lt;td align="right" style="border-width:0px 0.5pt 0.5pt 0px;border-style:none solid solid none;border-color:black white white black;height:15.75pt;"&gt;&lt;font face="Calibri" size="3"&gt;26&lt;/font&gt;&lt;/td&gt;&lt;td style="border-width:0px 0.5pt 0.5pt 0px;border-style:none solid solid none;border-color:black white white black;"&gt;&lt;font face="Calibri" size="3"&gt;FY2017000001&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height:15pt;"&gt;&lt;td align="right" style="border-width:0px 0.5pt 0.5pt 0px;border-style:none solid solid none;border-color:black white white black;height:15pt;"&gt;&lt;font face="Calibri" size="3"&gt;90&lt;/font&gt;&lt;/td&gt;&lt;td style="border-width:0px 0.5pt 0.5pt 0px;border-style:none solid solid none;border-color:black white white black;"&gt;&lt;font face="Calibri" size="3"&gt;FY2017000002&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height:15pt;"&gt;&lt;td align="right" style="border-width:0px 0.5pt 0.5pt 0px;border-style:none solid solid none;border-color:black white white black;height:15pt;"&gt;&lt;font face="Calibri" size="3"&gt;91&lt;/font&gt;&lt;/td&gt;&lt;td style="border-width:0px 0.5pt 0.5pt 0px;border-style:none solid solid none;border-color:black white white black;"&gt;&lt;font face="Calibri" size="3"&gt;FY2017000003&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height:15pt;"&gt;&lt;td align="right" style="border-width:0px 0.5pt 0.5pt 0px;border-style:none solid solid none;border-color:black white white black;height:15pt;"&gt;&lt;font face="Calibri" size="3"&gt;103&lt;/font&gt;&lt;/td&gt;&lt;td style="border-width:0px 0.5pt 0.5pt 0px;border-style:none solid solid none;border-color:black white white black;"&gt;&lt;font face="Calibri" size="3"&gt;FY2017000004&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height:15pt;"&gt;&lt;td align="right" style="border-width:0px 0.5pt 0.5pt 0px;border-style:none solid solid none;border-color:black white white black;height:15pt;"&gt;&lt;font face="Calibri" size="3"&gt;122&lt;/font&gt;&lt;/td&gt;&lt;td style="border-width:0px 0.5pt 0.5pt 0px;border-style:none solid solid none;border-color:black white white black;"&gt;&lt;font face="Calibri" size="3"&gt;FY2017000005&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height:15pt;"&gt;&lt;td align="right" style="border-width:0px 0.5pt 0.5pt 0px;border-style:none solid solid none;border-color:black white white black;height:15pt;"&gt;&lt;font face="Calibri" size="3"&gt;123&lt;/font&gt;&lt;/td&gt;&lt;td style="border-width:0px 0.5pt 0.5pt 0px;border-style:none solid solid none;border-color:black white white black;"&gt;&lt;font face="Calibri" size="3"&gt;FY2017000006&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height:15pt;"&gt;&lt;td align="right" style="border-width:0px 0.5pt 0.5pt 0px;border-style:none solid solid none;border-color:black white white black;height:15pt;"&gt;&lt;font face="Calibri" size="3"&gt;124&lt;/font&gt;&lt;/td&gt;&lt;td style="border-width:0px 0.5pt 0.5pt 0px;border-style:none solid solid none;border-color:black white white black;"&gt;&lt;font face="Calibri" size="3"&gt;FY2017000007&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height:15pt;"&gt;&lt;td align="right" style="border-width:0px 0.5pt 0.5pt 0px;border-style:none solid solid none;border-color:black white white black;height:15pt;"&gt;&lt;font face="Calibri" size="3"&gt;125&lt;/font&gt;&lt;/td&gt;&lt;td style="border-width:0px 0.5pt 0.5pt 0px;border-style:none solid solid none;border-color:black white white black;"&gt;&lt;font face="Calibri" size="3"&gt;FY2017000008&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height:15pt;"&gt;&lt;td align="right" style="border-width:0px 0.5pt 0.5pt 0px;border-style:none solid solid none;border-color:black white white black;height:15pt;"&gt;&lt;font face="Calibri" size="3"&gt;126&lt;/font&gt;&lt;/td&gt;&lt;td style="border-width:0px 0.5pt 0.5pt 0px;border-style:none solid solid none;border-color:black white white black;"&gt;&lt;font face="Calibri" size="3"&gt;FY2017000009&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height:15pt;"&gt;&lt;td align="right" style="border-width:0px 0.5pt 0.5pt 0px;border-style:none solid solid none;border-color:black white white black;height:15pt;"&gt;&lt;font face="Calibri" size="3"&gt;127&lt;/font&gt;&lt;/td&gt;&lt;td style="border-width:0px 0.5pt 0.5pt 0px;border-style:none solid solid none;border-color:black white white black;"&gt;&lt;font face="Calibri" size="3"&gt;FY2018000001&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height:15pt;"&gt;&lt;td align="right" style="border-width:0px 0.5pt 0.5pt 0px;border-style:none solid solid none;border-color:black white white black;height:15pt;"&gt;&lt;font face="Calibri" size="3"&gt;128&lt;/font&gt;&lt;/td&gt;&lt;td style="border-width:0px 0.5pt 0.5pt 0px;border-style:none solid solid none;border-color:black white white black;"&gt;&lt;font face="Calibri" size="3"&gt;FY2018000002&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height:15pt;"&gt;&lt;td align="right" style="border-width:0px 0.5pt 0.5pt 0px;border-style:none solid solid none;border-color:black white white black;height:15pt;"&gt;&lt;font face="Calibri" size="3"&gt;129&lt;/font&gt;&lt;/td&gt;&lt;td style="border-width:0px 0.5pt 0.5pt 0px;border-style:none solid solid none;border-color:black white white black;"&gt;&lt;font face="Calibri" size="3"&gt;FY2018000003&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height:15pt;"&gt;&lt;td align="right" style="border-width:0px 0.5pt 0.5pt 0px;border-style:none solid solid none;border-color:black white white black;height:15pt;"&gt;&lt;font face="Calibri" size="3"&gt;130&lt;/font&gt;&lt;/td&gt;&lt;td style="border-width:0px 0.5pt 0.5pt 0px;border-style:none solid solid none;border-color:black white white black;"&gt;&lt;font face="Calibri" size="3"&gt;FY2018000004&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height:15pt;"&gt;&lt;td align="right" style="border-width:0px 0.5pt 0.5pt 0px;border-style:none solid solid none;border-color:black white white black;height:15pt;"&gt;&lt;font face="Calibri" size="3"&gt;131&lt;/font&gt;&lt;/td&gt;&lt;td style="border-width:0px 0.5pt 0.5pt 0px;border-style:none solid solid none;border-color:black white white black;"&gt;&lt;font face="Calibri" size="3"&gt;FY2018000005&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height:15pt;"&gt;&lt;td align="right" style="border-width:0px 0.5pt 0.5pt 0px;border-style:none solid solid none;border-color:black white white black;height:15pt;"&gt;&lt;font face="Calibri" size="3"&gt;132&lt;/font&gt;&lt;/td&gt;&lt;td style="border-width:0px 0.5pt 0.5pt 0px;border-style:none solid solid none;border-color:black white white black;"&gt;&lt;font face="Calibri" size="3"&gt;FY2018000006&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height:15pt;"&gt;&lt;td align="right" style="border-width:0px 0.5pt 0.5pt 0px;border-style:none solid solid none;border-color:black white white black;height:15pt;"&gt;&lt;font face="Calibri" size="3"&gt;133&lt;/font&gt;&lt;/td&gt;&lt;td style="border-width:0px 0.5pt 0.5pt 0px;border-style:none solid solid none;border-color:black white white black;"&gt;&lt;font face="Calibri" size="3"&gt;FY2018000007&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height:15pt;"&gt;&lt;td align="right" style="border-width:0px 0.5pt 0.5pt 0px;border-style:none solid solid none;border-color:black white white black;height:15pt;"&gt;&lt;font face="Calibri" size="3"&gt;134&lt;/font&gt;&lt;/td&gt;&lt;td style="border-width:0px 0.5pt 0.5pt 0px;border-style:none solid solid none;border-color:black white white black;"&gt;&lt;font face="Calibri" size="3"&gt;FY2018000008&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height:15pt;"&gt;&lt;td align="right" style="border-width:0px 0.5pt 0px 0px;border-style:none solid none none;border-color:black white black black;height:15pt;"&gt;&lt;font face="Calibri" size="3"&gt;135&lt;/font&gt;&lt;/td&gt;&lt;td style="border-width:0px 0.5pt 0.5pt 0px;border-style:none solid solid none;border-color:black white white black;"&gt;&lt;font face="Calibri" size="3"&gt;FY2018000009&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;p&gt;&amp;nbsp;Thank you in advance&lt;/p&gt;</description></item></channel></rss>