Results 1 to 10 of 10
  1. #1
    Mahavir is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Dec 2011
    Posts
    12

    Tab Order Problem

    i have problem in attaached database in the form frmAdvice. the problem is in tab order. when i start enter the record using this form first record will be in tab order which i want but in second time forcus to the field amount instead of PO_No (Subform). kindly help.

  2. #2
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    The Tab Index property for the AMOUNT field is set to 0.
    This means that that is the first place the cursor will go when the sub form gets focus.
    AdviceId is set to 6, PO_NO is set to 5 . . .
    Change the Tab Index property of those text boxes depending on the order in which you need the focus to move.
    All the best!

  3. #3
    Mahavir is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Dec 2011
    Posts
    12
    Thanks for reply. actully by mistake i attached previouse version in which tab order was totaly reverse. now i am attaching the latest in which i changed already the tab index property as per ur suggestion but still the problem is same.




    Quote Originally Posted by Robeen View Post
    The Tab Index property for the AMOUNT field is set to 0.
    This means that that is the first place the cursor will go when the sub form gets focus.
    AdviceId is set to 6, PO_NO is set to 5 . . .
    Change the Tab Index property of those text boxes depending on the order in which you need the focus to move.
    All the best!

  4. #4
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    I opened your second database - everything seems to be working as expected.
    When I open frmAdvice - the focus is on Advice Date and then - when I Tab - the focus goes in this order:
    Client
    PO_NO
    PO_DATE
    INVOICE_NO
    INVOICE_DATE
    DESCRIPTION
    AMOUNT

    I created a new Advice number [286] and then went to the sub form and entered three new PO_NO's / Invoices . . ..

    The Tab order worked perfectly.

    I could not reproduce the problem you are describing.

  5. #5
    Mahavir is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Dec 2011
    Posts
    12
    Hey robin thanks for reply again,

    as you said first entry is fine like u have entry 286 but when we enter second entry immidiatly after, it goes to amount field. this is the problem..

    Mahavir

    Quote Originally Posted by Robeen View Post
    I opened your second database - everything seems to be working as expected.
    When I open frmAdvice - the focus is on Advice Date and then - when I Tab - the focus goes in this order:
    Client
    PO_NO
    PO_DATE
    INVOICE_NO
    INVOICE_DATE
    DESCRIPTION
    AMOUNT

    I created a new Advice number [286] and then went to the sub form and entered three new PO_NO's / Invoices . . ..

    The Tab order worked perfectly.

    I could not reproduce the problem you are describing.

  6. #6
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    I entered 287, 288 & 289 - and entered invoices for each one of those - and I still got the Tab order working correctly.

    I could not reproduce your problem.

    Can you explain again exactly - step by step - what you do to get your problem?

    The Tab order on your form & subform work correctly for me.

  7. #7
    Mahavir is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Dec 2011
    Posts
    12
    my problem is when i open the database and start entering advices, first entry goes in fine order as i want but second time, after selecting client tab should be go to PO_No but it is going to Amount field that i dont want it should go to PO_No.



    Quote Originally Posted by Robeen View Post
    I entered 287, 288 & 289 - and entered invoices for each one of those - and I still got the Tab order working correctly.

    I could not reproduce your problem.

    Can you explain again exactly - step by step - what you do to get your problem?

    The Tab order on your form & subform work correctly for me.

  8. #8
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    I was finally able to re-create your problem.

    I don't know what is causing the problem - sorry!

    But . . . to correct this problem, I did the following:

    1. Select the cmbClient combo box on frmAdvice.
    2. Open the Property Sheet & click the Events Tab.
    3. Click in the 'On Lost Focus' field, click on the ellipsis [...] on the right and select 'Code Builder'.
    4. Paste this into the subroutine:
    Code:
     
    Me![AdviceDetailSubForm].SetFocus
    Me![AdviceDetailSubForm].Form![PO_NO].SetFocus
    Your code should look like this:

    Code:
     
    Private Sub cmbClient_LostFocus()
     
    Me![AdviceDetailSubForm].SetFocus
    Me![AdviceDetailSubForm].Form![PO_NO].SetFocus
     
    End Sub
    This will ensure that every time you select a ClientId, you will go to the PO-NO box on your sub form.

    Let me know if that works!

  9. #9
    Mahavir is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Dec 2011
    Posts
    12

    Smile

    its working man... thanks a lot.....

  10. #10
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    You're welcome!
    Mark it as solved by going to the Thread Links at the top of the page!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Order By Subquery
    By dfenton21 in forum Access
    Replies: 1
    Last Post: 09-07-2011, 07:43 PM
  2. Id Order
    By Rockin-John in forum Forms
    Replies: 15
    Last Post: 05-03-2011, 02:39 PM
  3. Order by
    By cowboy in forum Access
    Replies: 2
    Last Post: 05-03-2010, 05:04 PM
  4. Tabbing order
    By emccalment in forum Forms
    Replies: 1
    Last Post: 02-18-2010, 10:58 AM
  5. Chart Order
    By protean_being in forum Reports
    Replies: 0
    Last Post: 06-19-2008, 09:26 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums