Results 1 to 2 of 2
  1. #1
    MuskokaMad is offline Novice
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Posts
    17

    Enabling a control and moving to a new tab in vba

    Thanks for your assistance.

    I have a parent form frm_NewOrderEntry with 3 Subforms on tabs.

    I would like to enable each tab after the user confirms they have completed filling the information.

    I assume I will set the Locked Property to True for the tab controls when the form opens.
    I would then put a button on the subform that uses code in the ONClick Event like.

    tabPayments.Locked=False
    tabOrders.Locked=True



    Is this correct and how do I close the current tab in the above case tabOrders and open the tabPayments tab???

    Thanks Jason

  2. #2
    MuskokaMad is offline Novice
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Posts
    17

    Solved

    Worked out a solution. Thanks again.

    Used :

    Private Sub cmdMakePayment_Click()
    Forms!frm_NewOrderEntry2!tabPayments.Enabled = True
    Forms!frm_NewOrderEntry2!tabPayments.SetFocus
    Forms!frm_NewOrderEntry2!tabOrderDetails.Enabled = False
    End Sub

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

Similar Threads

  1. Moving data within....
    By mulefeathers in forum Queries
    Replies: 0
    Last Post: 10-22-2009, 08:14 AM
  2. Moving records up
    By saqqer in forum Programming
    Replies: 0
    Last Post: 07-27-2009, 08:29 AM
  3. Help with Moving names
    By Mcinsane in forum Access
    Replies: 1
    Last Post: 06-04-2009, 01:04 PM
  4. Moving Information from One Form to Another
    By bsharpbyoung in forum Forms
    Replies: 2
    Last Post: 03-22-2009, 09:37 PM
  5. Moving Records Between Databases
    By sscott in forum Access
    Replies: 2
    Last Post: 03-22-2009, 09:08 PM

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