Results 1 to 8 of 8
  1. #1
    Join Date
    Apr 2004
    Location
    ny, ny
    Posts
    224

    Unanswered: tab control issues

    I have a form in which i have a tab control with 5 tabs
    The problem is when i click on my add new record button, it opens a new record but the control remains in the last tab .. instead of coming back to the first tab . any way of changing that

  2. #2
    Join Date
    Mar 2003
    Location
    The Bottom of The Barrel
    Posts
    6,102
    Provided Answers: 1
    Are you giving the user a button for a new record or are you using the default navbar thing that access provides?

    If you're using a button, you could reference the first tab and call the setfocus method, that seems like it would be easiest.

  3. #3
    Join Date
    Apr 2004
    Location
    ny, ny
    Posts
    224
    i m using a button
    how do i reference and set focus

  4. #4
    Join Date
    Mar 2003
    Location
    The Bottom of The Barrel
    Posts
    6,102
    Provided Answers: 1
    Me.TabControlName.Pages(0).SetFocus

  5. #5
    Join Date
    Apr 2004
    Location
    ny, ny
    Posts
    224
    my tab is called punch in so shud it be me.punch in.Pages(0).SetFocus
    bcos thats giving me an error
    wats the me for ?

  6. #6
    Join Date
    Mar 2003
    Location
    The Bottom of The Barrel
    Posts
    6,102
    Provided Answers: 1
    Me references the current form or report.

    You're getting an error because you put a space in your object name.

  7. #7
    Join Date
    Apr 2004
    Location
    ny, ny
    Posts
    224
    is it pages or page ..

  8. #8
    Join Date
    Mar 2003
    Location
    The Bottom of The Barrel
    Posts
    6,102
    Provided Answers: 1
    pages

Posting Permissions

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