Seting Focus on a Field

AndreasBucherAndreasBucher Member Posts: 18
Simple Question :).

How Can i set the Focus on a specific Field like SalesPerson Code?

On the Deactivate Triger on the Sales Head Form i want to check if the SalesPerson Code is not blank. If it is blank i want to set focus on it.

is there a function to set focus? I didnt find it.

Greets Andi

Comments

  • krikikriki Member, Moderator Posts: 9,118
    Simple answer: :D

    CurrForm."Your Field".ACTIVATE;
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • SavatageSavatage Member Posts: 7,142
    How about
    If "Salesperson Code" = ''
    THEN
     BEGIN
      MESSAGE(Text002,"No.");
      CurrForm."Salesperson Code".ACTIVATE;
     END;
    

    Where Text002 is : Salesperson Code is missing on Order %1


    Also Set the property "Not Blank" on the customer table "Salesperson Code" = YES as well as on the Sales Order Form.
Sign In or Register to comment.