<?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>Re: Concat Expression Formula</title><link>https://www.infopathdev.com:443/forums/thread/22940.aspx</link><pubDate>Mon, 10 Sep 2007 05:28:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22940</guid><dc:creator>Monte Cristo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22940.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=22940</wfw:commentRss><description>&lt;p&gt;Hi Patrick,&lt;/p&gt;
&lt;p&gt;I am calling on the max function to provide the next available number in the sequence, so the tbl in the database has only 0001, 0002 &amp;amp; 0003, so I use the max + 1 to return the next number in the sequence.&lt;/p&gt;
&lt;p&gt;Once I have this number and I&amp;#39;ve filled out the form I record a new record in the database and it repeats.&lt;/p&gt;
&lt;p&gt;Custom function any idea where to start?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;</description></item><item><title>Re: Concat Expression Formula</title><link>https://www.infopathdev.com:443/forums/thread/22937.aspx</link><pubDate>Mon, 10 Sep 2007 04:12:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22937</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22937.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=22937</wfw:commentRss><description>&lt;p&gt;Hi Monte Cristo,&lt;/p&gt;
&lt;p&gt;Why are you calling the max function? I think that may be one of the problems. Try removing that and see if the data type of @Claim_Number is of type text. If it is, you will have to use a custom function to get the maximum (some string enumeration will be required.&lt;/p&gt;
&lt;p&gt;Good luck!&lt;/p&gt;</description></item><item><title>Concat Expression Formula</title><link>https://www.infopathdev.com:443/forums/thread/22935.aspx</link><pubDate>Mon, 10 Sep 2007 02:15:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22935</guid><dc:creator>Monte Cristo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22935.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=22935</wfw:commentRss><description>&lt;div class="ForumPostContentText"&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have a database with one table, it has three coloumns, (1) a simple number format 0001, 0002, 0003 &amp;amp; so on....[text format&amp;nbsp;in access]&amp;nbsp;(2) Name [text format in access] (3) date [date format in access]&lt;/p&gt;
&lt;p&gt;So I have connected this database as my main connection and this all works.&lt;/p&gt;
&lt;p&gt;I have an expression box which queries the database coloumn (1) but the expression box returs the value without the 0&amp;#39;s so all I get is 3, 4, 5 etc.&lt;/p&gt;
&lt;p&gt;This is the formula in the expression box: &lt;strong&gt;concat(&lt;u&gt;Year&lt;/u&gt;, &amp;quot;-&amp;quot;, &lt;u&gt;ProductLine&lt;/u&gt;, &amp;quot;-&amp;quot;, max(&lt;u&gt;@Claim_Number&lt;/u&gt;) + 1) &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;BTW - @Claim_Number is the one querying the database coloumn (1)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Can anyone please tell me how I can return the values of coloumn (1) with the leading zeros? I have tried to change the format of the coloumn in access to a number (long integer) still not returning the values with the leading zero&amp;#39;s.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;&lt;/div&gt;</description></item></channel></rss>