<div dir="ltr"><div>Yes that&#39;s what it said - so I did as you said and yes, in fact the beep msgbox only is encountered once - thanks  now line 1 is blank in the If: and Then: end</div><div>Now if I can just figure out why aa is always blank then I&#39;ll be set.....thanks for that tip....</div>
<div>Scott</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jul 14, 2014 at 4:54 PM, Chris Rendall <span dir="ltr">&lt;<a href="mailto:crendall@teamind.com" target="_blank">crendall@teamind.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Does the first &quot;If&quot; line in your code have the &quot;If 1=&quot;&quot; then end&quot;?  If so, take out the 1=&quot;&quot; from the &quot;If&quot; line and just leave the &quot;end&quot; on the then line.<br>

<br>
If field 1 is not equal to blank then the code will continue into the @sbrk1 code, and then the code in @sbrk1 runs again when the break value changes causing it to run twice like you are seeing.<br>
<br>
--- Chris<br>
<div><br>
-----Original Message-----<br>
From: <a href="mailto:scooter6@gmail.com">scooter6@gmail.com</a> [mailto:<a href="mailto:scooter6@gmail.com">scooter6@gmail.com</a>]<br>
Sent: Monday, July 14, 2014 3:46 PM<br>
To: Kenneth Brody<br>
Cc: <a href="mailto:filepro-list@lists.celestial.com">filepro-list@lists.celestial.com</a><br>
Subject: Re: summary sheets from temp file<br>
<br>
</div><div><div class="h5">One more thing to note, on the actual print outs with this processing, the last page it prints (for client 5499, which is in fact the highest client<br>
number) does show aa as 0091 and ab as 0091 (which 0091 is the highest acct number for 5499) ?<br>
The first 3 pages (for clients 2435, 3194 and 3981) show aa is blank but ab is correct --<br>
<br>
<br>
On Mon, Jul 14, 2014 at 4:42 PM, <a href="mailto:scooter6@gmail.com">scooter6@gmail.com</a> &lt;<a href="mailto:scooter6@gmail.com">scooter6@gmail.com</a>&gt;<br>
wrote:<br>
<br>
&gt; Field 1 is client number  (i.e. 2435, 3194, 3981, 5499) Field 2 is<br>
&gt; acct number Field 3 is those 2 fields combined  with a &quot;-&quot; in middle<br>
&gt; (i.e. 2435-0126,<br>
&gt; 3194-0143)<br>
&gt;<br>
&gt; If I change message box to show all 3, it says &quot;Value of field 1 is<br>
&gt; 2435 field 2 is 0126 field 3 is 2435-0126&quot;  When it encounters the<br>
&gt; very first record of each unique client number, I have to hit enter<br>
&gt; twice - and these values do not change after hitting enter first<br>
&gt; time....only after hitting enter for 2nd time does it go to the next<br>
&gt; account - but it&#39;s only the first acct it finds under each client? Why would that be?<br>
&gt; For instance, when I get to client 5499, the message box shows &quot;Value<br>
&gt; of field 1 is 5499 field 2 is 0086 field 3 is 5499-0086&quot;  After I hit<br>
&gt; enter first time, the values stay the same....BUT, after I hit enter<br>
&gt; for the 2nd time, and every consecutive time, it increments the values<br>
&gt; properly....so after I hit enter for 2nd time, it shows 5499-0087,<br>
&gt; then after 3rd time, it shows 5499-0088 and so on, but on the first<br>
&gt; record it finds for each unique client number, I have to hit enter twice....?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Mon, Jul 14, 2014 at 4:29 PM, Kenneth Brody &lt;<a href="mailto:kenbrody@spamcop.net">kenbrody@spamcop.net</a>&gt;<br>
&gt; wrote:<br>
&gt;<br>
&gt;&gt; On 7/14/2014 4:21 PM, <a href="mailto:scooter6@gmail.com">scooter6@gmail.com</a> wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt; Seems to me it&#39;s going thru @sbrk1 after each record.....I put a<br>
&gt;&gt;&gt; &#39;beep;msgbox...&#39; statement in @sbrk as shown and it increases each<br>
&gt;&gt;&gt; time I hit enter Here are the records I have in the file:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; 2435-0126<br>
&gt;&gt;&gt;<br>
&gt;&gt; [...]<br>
&gt;&gt;<br>
&gt;&gt;  5499-0091<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; So my processing now looks like this:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; :1=&quot;&quot;:end::<br>
&gt;&gt;&gt; @sbrk1::aa(4,#,g)=mid(3,&quot;6&quot;,&quot;4&quot;);beep;msgbox &quot;Value of aa is&quot;&lt;aa<br>
&gt;&gt;&gt; &#39;this is the lowest acct number:<br>
&gt;&gt;&gt; ::end:<br>
&gt;&gt;&gt;<br>
&gt;&gt; [...]<br>
&gt;&gt;<br>
&gt;&gt;  My sort information is:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;    Sort field     :   1    |  2<br>
&gt;&gt;&gt;    Length        :   4    |  4<br>
&gt;&gt;&gt;    Descending:         |<br>
&gt;&gt;&gt; Subtotal field:    x   |<br>
&gt;&gt;&gt;<br>
&gt;&gt; [...]<br>
&gt;&gt;<br>
&gt;&gt; Since you&#39;re sorting on field 1, perhaps you should show us the value<br>
&gt;&gt; of that field?  Maybe the message box should show the values of<br>
&gt;&gt; fields 1, 2, and 3?<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Kenneth Brody<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
</div></div><div>-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
</div>URL: <a href="http://mailman.celestial.com/pipermail/filepro-list/attachments/20140714/e5112040/attachment.html" target="_blank">http://mailman.celestial.com/pipermail/filepro-list/attachments/20140714/e5112040/attachment.html</a><br>

<div class="HOEnZb"><div class="h5">_______________________________________________<br>
Filepro-list mailing list<br>
<a href="mailto:Filepro-list@lists.celestial.com">Filepro-list@lists.celestial.com</a><br>
Subscribe/Unsubscribe/Subscription Changes <a href="http://mailman.celestial.com/mailman/listinfo/filepro-list" target="_blank">http://mailman.celestial.com/mailman/listinfo/filepro-list</a><br>
_______________________________________________<br>
Filepro-list mailing list<br>
<a href="mailto:Filepro-list@lists.celestial.com">Filepro-list@lists.celestial.com</a><br>
Subscribe/Unsubscribe/Subscription Changes<br>
<a href="http://mailman.celestial.com/mailman/listinfo/filepro-list" target="_blank">http://mailman.celestial.com/mailman/listinfo/filepro-list</a><br>
</div></div></blockquote></div><br></div>