Results 1 to 4 of 4

Thread: Simple question

  1. #1
    Join Date
    Oct 2007

    Question Unanswered: Simple question

    If i click a command button for a new record, and i want the cursor to start in a specific field in my database, how would i make that happen?

    for instance if i click "new record" it takes me to a blank screen but then i have to manually click where i want to start typing. How can i automatically place the cursor in lets say the first name field so i can just start typing once i click the button. Thanks!

  2. #2
    Join Date
    May 2005
    Nevada, USA
    Provided Answers: 6
    Normally you would set the tab order appropriately. You can force the issue with


    after going to the new record.

  3. #3
    Join Date
    Nov 2007
    Adelaide, South Australia
    ▲ Agreed, except that Tab Order is irrelevant here. When you do a NEW command, Access navigates to the new record, but the focus remains in the field that currently has the focus, irrespective of Tab Order
    Owner and Manager of
    CypherBYTE, Microsoft Access Development Specialists.
    Microsoft Access MCP.
    And all around nice guy!

    "Heck it's something understood by accountants ... so it can't be 'that' difficult..." -- Healdem
    "...teach a man to code and he'll be frustrated for life! " -- georgev

  4. #4
    Join Date
    Feb 2004


    In the code of the command button put the following
    your field name.setfocus
    You know, I'm sick of following my dreams, man. I'm just going to ask where they're going and hook up with 'em later

Posting Permissions

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