Results 1 to 3 of 3
  1. #1
    cdzajp is offline Novice
    Windows XP Access 2007
    Join Date
    May 2011
    Posts
    10

    Help with tab control please

    Hi all



    Is it possible to link and command button to a tab?

    example is rather than the user reaching the end of the form and going back to change to tab two, they can simply press a next button and the 2nd tab is displayed on screen?

    Thanks

    CD

  2. #2
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    I would use the name of the tab page instead of number since the order might possibly change at some point. So you should be able to use

    Me.TabPageNameHere.SetFocus

    or you can set the value for the main tab control like:
    Code:
     
    Me.TabControlNamehere = Me.TabControlNameHere.Pages("PageNameHere").PageIndex
    Last edited by boblarson; 07-14-2011 at 03:20 PM. Reason: forum software inserting space where it should not be, so added code tags to avoid that.

  3. #3
    cdzajp is offline Novice
    Windows XP Access 2007
    Join Date
    May 2011
    Posts
    10

    Thanks

    Hi Bob

    Thanks for the reply, it did the job Sometimes I think i'm never gonna remember all these different commands.

    If i may, could i ask another question?

    I have form that shows as follows:

    Day Time On Time Off Total Hours

    It is a simple monitoring tool (want to measure carbon footprint) but what i want is where the times are the same all week, they can click a button and it copies to the rest of the days.

    Again my thanks

    CD

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

Similar Threads

  1. Help with Tab control
    By cdzajp in forum Forms
    Replies: 1
    Last Post: 06-16-2011, 12:49 PM
  2. Replies: 1
    Last Post: 05-18-2011, 07:23 AM
  3. Replies: 6
    Last Post: 03-14-2011, 09:37 AM
  4. help with Tab control
    By ManC in forum Forms
    Replies: 1
    Last Post: 03-16-2010, 10:59 PM
  5. Sending control to specific control
    By wasim_sono in forum Programming
    Replies: 2
    Last Post: 04-19-2007, 08:19 AM

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