<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Autonumbering with restart at beginning of year</title><link>https://www.infopathdev.com:443/forums/thread/64024.aspx</link><pubDate>Wed, 09 Feb 2011 14:40:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:64024</guid><dc:creator>Jenny18</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/64024.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=64024</wfw:commentRss><description>&lt;p&gt;Hi, I am using InfoPath 2003.&amp;nbsp; I am creating a request form and I would like to have a RequestID field that uses a format such as:&lt;/p&gt;
&lt;p&gt;C/yyyy/mm/xxx&lt;/p&gt;
&lt;p&gt;The C and the /&amp;#39;s are hardcoded.&amp;nbsp; I have figured out how to fill in the yyyy and the mm.&amp;nbsp; Currently my formula looks like this:&lt;/p&gt;
&lt;p&gt;concat(&amp;quot;C/&amp;quot;, substring(today(), 1, 4), &amp;quot;/&amp;quot;, substring(today(), 6, 2), &amp;quot;/001&amp;quot;)&lt;/p&gt;
&lt;p&gt;Notice that I have the &amp;quot;/001&amp;quot; hardcoded in.&lt;/p&gt;
&lt;p&gt;However, I would like the autonumbering to start at 001, and then at the beginning of the new year, restart the numbering again.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I found the following article on the internet, but have not tried it out yet, and I don&amp;#39;t think it covers &amp;quot;resetting the autonumbering sequence&amp;quot;&lt;/p&gt;
&lt;div&gt;&lt;font color="#000080" face="Calibri"&gt;&lt;a title="http://claytoncobb.wordpress.com/2009/06/15/auto-numbering-infopath-forms/" href="http://claytoncobb.wordpress.com/2009/06/15/auto-numbering-infopath-forms/"&gt;http://claytoncobb.wordpress.com/2009/06/15/auto-numbering-infopath-forms/&lt;/a&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font color="#000080" face="Calibri"&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;font color="#000080" face="Calibri"&gt;Can anyone provide any advice or thoughts on how to accomplish this?&amp;nbsp; Sharing of code is welcome if you have already implemented something similar!&amp;nbsp; I cannot imagine that I would be the first!&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font color="#000080" face="Calibri"&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;font color="#000080" face="Calibri"&gt;Thanks!&lt;/font&gt;&lt;/div&gt;</description></item></channel></rss>