Options

Set Focus on Main-Form when using a subform

zannaleerzannaleer Member Posts: 5
Hello,

I have a form with a subform. When this form is started the cursor is standing in the subform.
What does I have to do to put the cursor in the mainform?

greetings
Alexander

Answers

  • Options
    garakgarak Member Posts: 3,263
    check for CurrForm.activate.Control on the subform / Mainform
    Do you make it right, it works too!
  • Options
    krikikriki Member, Moderator Posts: 9,096
    Put the form property DelayedInsert of the subform to false.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • Options
    zannaleerzannaleer Member Posts: 5
    the proberty DelayedInsert on the subform is No.

    in which trigger should stand currform.activate? I've tried it in the onopenform-trigger and in the onaftergetrecord-trigger, but the cursor is in the subform, always.
  • Options
    kinekine Member Posts: 12,562
    Put the form property DelayedInsert of the subform to false.
    No, it must be True... ;-)
    the proberty DelayedInsert on the subform is No.

    It must be Yes... 8)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    zannaleerzannaleer Member Posts: 5
    It's so simple, when you know how :wink:

    thank you.
  • Options
    krikikriki Member, Moderator Posts: 9,096
    kine wrote:
    Put the form property DelayedInsert of the subform to false.
    No, it must be True... ;-)
    the proberty DelayedInsert on the subform is No.

    It must be Yes... 8)
    Oops, I meant TRUE, but in the haste I wrote false. :oops:
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.