Results 1 to 5 of 5
  1. #1
    scottdg is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2015
    Posts
    31

    tabbed form


    I am looking to create a form that displays a stores general information and then below has different tabs with additional info. One of the tabs would have owner information and another one would have employee information. Each of these could have multiple people so I want to be able to list the names in the tab and allow the user to select a name to open a new form displaying additional information. I am not sure how to accomplish this on a tab.

    Thanks,
    Scott

  2. #2
    ranman256's Avatar
    ranman256 is online now VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    usu, I have the master record say Client (single rec form)
    and on it is the subform and the tabs (Payments, Purchases, Inventory...)
    clicking on the tab, sets a new query to the subform. (so the form is not cluttered w many data screens)

    The event on tabChange:
    Code:
    Private Sub TabCtl_Change()
    
    
    Select Case TabCtl.Value
       Case 0
          chld.RowSource = "qsPayments"
       Case 1
          chld.RowSource = "qsPurchases"
       Case 2
          chld.RowSource = "qsInv"
    End Select
    End Sub

  3. #3
    scottdg is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2015
    Posts
    31
    I am not really sure what you are suggesting...

    The problem I am having is that on a regular form if I limit the size of the detail sections it will repeat for as many records as I have in my set. I don't seem to have that option for a tab. I was able to include a subform on the tab with the list of names that I need. Now I am trying to figure out how to add a button that will select the record and open another form.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,921
    You are using a Tab control?

    Options:

    1. set the subforms as continuous view and arrange controls to look like datasheet and this will allow buttons to show

    2. I use double click event of subform to open another form
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    McArthurGDM is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    215
    The approach I would take for this is to create subforms and set a parent/child relationship. It seems to me that if you had a correctly/normalized database design, then you have different tables relating all the information you suggested. In which case, just creating subforms.

    The key to creating tabs that alter criteria based on what you click is to set one or the other subform controls to visible/not visible.

    All the information is there on the form, but based on what you click, it becomes visible or not.

    Having all that on one form would be hard and messy and cluttered, but I don't know any other more elegant method.

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

Similar Threads

  1. Tabbed form
    By leftylee in forum Forms
    Replies: 6
    Last Post: 03-14-2011, 12:45 AM
  2. can a tabbed form be too big? Help!
    By ma t in forum Forms
    Replies: 3
    Last Post: 03-10-2011, 10:03 AM
  3. Tabbed Form & Printing...
    By nchesebro in forum Forms
    Replies: 3
    Last Post: 12-20-2010, 03:03 PM
  4. tabbed form with subtabs
    By MWMike in forum Forms
    Replies: 1
    Last Post: 12-10-2010, 11:27 PM
  5. Tabbed Sub Form
    By Vikki in forum Access
    Replies: 1
    Last Post: 02-10-2010, 10:30 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