Results 1 to 4 of 4
  1. #1
    Join Date
    May 2002
    Posts
    395

    Unanswered: syntax on setfocus on nested subform

    I'm trying to set focus on a control in a nested subform(one subform within another subform), but it does not work.
    Is there something wrong with my syntax? Thanks!!

    Me!dispo_rej_mat_subform!RMR_desc_defects_subform. SetFocus
    Me!dispo_rej_mat_subform!RMR_desc_defects_subform! num_defects.SetFocus

    I also tried with Forms!....
    Still does not work.

  2. #2
    Join Date
    Jul 2003
    Location
    Canberra, ACT Australia
    Posts
    53

    Re: syntax on setfocus on nested subform

    Originally posted by alicejwz
    I'm trying to set focus on a control in a nested subform(one subform within another subform), but it does not work.
    Is there something wrong with my syntax? Thanks!!

    Me!dispo_rej_mat_subform!RMR_desc_defects_subform. SetFocus
    Me!dispo_rej_mat_subform!RMR_desc_defects_subform! num_defects.SetFocus

    I also tried with Forms!....
    Still does not work.


    Try the following address

    http://www.mvps.org/access/forms/frm0031.htm

    flicking thru a few pages should help find what you need.

    cheers

  3. #3
    Join Date
    Aug 2003
    Location
    Argentina
    Posts
    465

    Re: syntax on setfocus on nested subform

    Originally posted by alicejwz
    I'm trying to set focus on a control in a nested subform(one subform within another subform), but it does not work.
    Is there something wrong with my syntax? Thanks!!

    Me!dispo_rej_mat_subform!RMR_desc_defects_subform. SetFocus
    Me!dispo_rej_mat_subform!RMR_desc_defects_subform! num_defects.SetFocus

    I also tried with Forms!....
    Still does not work.
    Tried with this:

    Forms![YourMainForm]![YourSubform-1]![YourSubform-2].SetFocus
    Forms![YourMainForm]![YourSubform-1]![YourSubform-2]![YourControl].SetFocus
    Saludos
    Norberto

  4. #4
    Join Date
    May 2002
    Posts
    395

    Re: setfocus syntax on nested subform

    Originally posted by rodmead
    Try the following address

    http://www.mvps.org/access/forms/frm0031.htm

    flicking thru a few pages should help find what you need.

    cheers
    Thanks for the info.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •