Normal Topic Form Entry code (Read 307 times)
lksseven
Full Member
***
Offline



Posts: 416
Location: Southwest
Joined: Jan 26th, 2009
Form Entry code
Mar 30th, 2009 at 2:28am
Print Post Print Post  
long story (below) made short:  when advancing in 'update' from one record to another, On Form Entry programming works fine when using 'Menu Next Record' button or a command button on the form, but when using F10 key, the On Form Entry code does not work if the focus is on unrelated field to the code.


Suggestions for me?

Here is the code ... Pricing:: On Form Entry

If @Mode() = 0
     {
           ThrowFocus(ClientID)
     }
     else
     {

     If @Mode() = 1 and (@IsNew = 0)
           {
           If PriceOrMargin = "P"
                 {
                       Readonly(Margin,1)
                       Readonly(ClientPrice,0)
                       Readonly(ClientID,1)
                       Readonly(ItemNum,1)
                       ThrowFocus(ClientPrice)
                 }
           If PriceOrMargin = "M"
                 {
                       Readonly(ClientPrice,1)
                       Readonly(Margin,0)
                       Readonly(ClientID,1)
                       Readonly(ItemNum,1)
                       ThrowFocus(Margin)
                 }
           }
     }
« Last Edit: Mar 31st, 2009 at 1:39am by lksseven »  

Larry
Back to top
IP Logged