<div>Okay, this is a continuation of my previous thread where we&#39;re limiting access to VIEW accts based on login, etc.</div>
<div>So, for now as you recall I decided to go in a little different direction. I am copying over the data from the &quot;master&quot; file over to a replica file that will only contain the records I need.  That part is all a-okay.</div>

<div> </div>
<div>Now, in this &quot;replica&quot; file, I&#39;m bulding multiple browse lookups and have created a special menu, etc.</div>
<div>Everything works fine so far except one thing.</div>
<div>When you initially get to my data, there is a menu that is created from my input processing.</div>
<div>It shows a browse window then will all the accts, etc.</div>
<div>Across the bottom, via a show statemen, there is &quot;V&quot; to view, &quot;N&quot; for notes, &quot;P&quot; for Payments and &quot;X&quot; to Exit</div>
<div>That&#39;s fine.  So far, I&#39;ve only put the processing in place to &quot;V&quot; view and N for notes.</div>
<div>The problem is this - at this first browse lookup window, I hit &quot;V&quot; to view and I get the &quot;view&quot; screen from the replica file.</div>
<div>When I hit &quot;N&quot; for notes, it clears the screen, and opens a browse window with all the note records from a completely different file.</div>
<div>On the bottom of this browse, there is &quot;V&quot; to View and &quot;X&quot; to exit.</div>
<div>When I hit &quot;V&quot; to view the VERY FIRST TIME here, it shows me a blank &quot;view&quot; screen from the replica file, NOT the notes file.  After hitting enter to clear this screen, every subsequent time I hit &quot;V&quot; it shows the correct &quot;view&quot; screen from the notes file.  Still with me?haha</div>

<div> </div>
<div>Below is my input processing table.  I&#39;m soooo close to getting this to work, but obviously hit a stumbling block here.</div>
<div>Can anyone see what I&#39;m missing here? Is this a bug in the @bk syntax or what??</div>
<div>Help! (please)</div>
<div> </div>
<div>Thanks</div>
<div>Scott</div>
<div> </div>
<div> </div>
<div>@menu :</div>
<div>           :: dim myiua(3)</div>
<div> </div>
<div>            :</div>
<div>           :: myiua[&quot;1&quot;]=&quot;Choose Search Option&quot;</div>
<div> </div>
<div>            :</div>
<div>           :: myiua[&quot;2&quot;]=&quot;A:Search by PDM Acct Num&quot;</div>
<div> </div>
<div>            :</div>
<div>           :: myiua[&quot;3&quot;]=&quot;B:Search by Last Name&quot;</div>
<div> </div>
<div>rptmnu  :</div>
<div>           :: cls(&quot;22&quot;)</div>
<div> </div>
<div>            :</div>
<div>           :: menu myiua dosrch1, dosrch2</div>
<div> </div>
<div>            :</div>
<div>           :: exit</div>
<div> </div>
<div>dosrch1 :</div>
<div>           :: lookup act = PDMace k=3    i=A -nx b=&quot;(brw=12 xkey=nx show=pkeep pop=1v prc=actn fill=asc,top) [ PDM Num       Name</div>
<div> </div>
<div>            :</div>
<div>           ::                       Plcmt Bal        Payments          Curr Balance]    *3                         *7                             *20          *21          *22&quot;</div>
<div> </div>
<div>            :</div>
<div>           ::  aa(11,allup)=act(3)</div>
<div> </div>
<div>            : @bk=&quot;N&quot;</div>
<div>           :: clearp;goto notes</div>
<div> </div>
<div>            : @bk=&quot;V&quot;</div>
<div>           :: popup act,&quot;1v&quot;;show &quot;@&quot;;cls; clearp</div>
<div> </div>
<div>            : @bk=&quot;X&quot;</div>
<div>           :: puskey &quot;xx&quot;</div>
<div> </div>
<div>            :</div>
<div>           :: end</div>
<div>
<div>dosrch2 :</div>
<div>           :: lookup act = PDMace k=7    i=B -nx b=&quot;(brw=12 xkey=nx show=pkeep pop=1v prc=name fill=asc,top) [ PDM Num       Name</div>
<div> </div>
<div>            :</div>
<div>           ::                       Plcmt Bal        Payments          Curr Balance]    *3                         *7                             *20          *21          *22&quot;</div>
<div> </div>
<div>actn      :</div>
<div>           :: show &quot;\r V \r to View \r N \r for Notes \r P \r for Payments \r X \r to Exit&quot;; end</div>
<div> </div>
<div>
<div>name    :</div>
<div>           :: show &quot;\r V \r to View \r N \r for Notes \r P \r for Payments \r X \r to Exit&quot;; end</div>  </div>
<div>notes    :</div>
<div>           :: show &quot;\r V \r to View or \r X \r to Quit&quot;</div>
<div> </div>
<div>            :</div>
<div>           :: lookup phc = notes k=aa   i=A  -Nxm b=&quot;(brw=12 xkey=vx show=pkeep pop=view fill=asc,top) [PDM Num      Date             Time</div>
<div> </div>
<div>            :</div>
<div>           ::      Comment1] *1                   *2                 *3              *8&quot;</div>
<div> </div>
<div>            : @bk=&quot;V&quot;</div>
<div>           :: popup phc,&quot;view&quot;;show &quot;@&quot;;clearp; goto notes</div>
<div> </div>
<div>            : @bk=&quot;X&quot;</div>
<div>           :: cls;clearp; goto dosrch1</div>
<div> </div>
<div>            :</div>
<div>           :: end</div>
<div> </div>
<div>Keeping in mind, I&#39;m only looking at what happens when &quot;notes&quot; is called. I realize the code isn&#39;t finishe for dosrch2, etc as well as &quot;P&quot; for Payments, etc.</div>
<div>After lookup to notes, why doesn&#39;t  &quot;@bk=&quot;V&quot; call the corrrect screen from the notes file when you FIRST hit V?  When you first hit &quot;V&quot; at line 22, you get a blank screen from PDMace, not the notes file?? But, after that, the correct &quot;V&quot; works and shows the view screen from the notes file??? I&#39;m confused by this???</div>

<div> </div>
<div>Thanks for any help on this</div>
<div> </div>
<div>Scott</div>
<div> </div></div>