Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 352837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T11:46:27+00:00 2026-05-12T11:46:27+00:00

I am considering the use of a tab control on a parent form for

  • 0

I am considering the use of a tab control on a parent form for which I would like to have around 20 tabs. Each tab I am considering the use of one or two separate sub forms. Each sub form will have varied complexity in coded logic. By taking this approach will I severally reduce the performance of my application? I am currently using this in MS Access 2003. I will expect an average of 15 users at any given time on the various forms.

Thoughts?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T11:46:28+00:00Added an answer on May 12, 2026 at 11:46 am

    Yes, performance will be degraded slightly for each subform. One or three isn’t too bad but twenty is definitely going to cause you performance issues.

    Once you have the subform working to your satisfaction either save the Record Source as a query and give it a name or save the query SQL string. Then either paste the query name or the query SQL string in the VBA code in the tab control change event.

    Private Sub TabCtl_Change()
       On Error GoTo TabCtl_Change_Error
    
        Select Case Me.TabCtl.Value
        Case Me.pagPartsConsumed.PageIndex
            If Me.PartsConsumedsbf.Form.RecordSource <> "Equipment - Parts Consumed sbf" Then _
                Me.PartsConsumedsbf.Form.RecordSource = "Equipment - Parts Consumed sbf"
    ....
    

    Now just to ensure that I don’t accidentally leave some subform recordsources filled in slowing down the app on startup I check to see if the file the code is running is an MDB (instead of an MDE. The function is below) then display a message telling me I have to remove the recordsource.

       If Not tt_IsThisAnMDE Then
            If Me.PartsConsumedsbf.Form.RecordSource <> "" Then _
                MsgBox "Record source of Equipment - Parts Consumed sbf not empty"
            ...
       End If
    
    Public Function tt_IsThisAnMDE()
    On Error GoTo tagError
    
      Dim dbs As Database
      Set dbs = CurrentDb
      Dim strMDE As String
      On Error Resume Next
      strMDE = dbs.Properties("MDE")
      If Err = 0 And strMDE = "T" Then
        ' This is an MDE database.
        tt_IsThisAnMDE = True
      Else
        tt_IsThisAnMDE = False
      End If
    
        Exit Function
    
    tagError:
        Call LogError(Application.CurrentObjectName, "")
        Exit Function
    
    End Function
    

    Also in the form unload event I clear the Recourd Source as well.

    Private Sub Form_Unload(Cancel As Integer)
    
       On Error GoTo Form_Unload_Error
    
        Me.PartsConsumedsbf.Form.RecordSource = ""
        ....
    

    BTW I almost always would put each subform on a seperate tab. Also that many tab entries gets visusally unwieldy. When I had a similar question my fellow Access MVPs suggested using a listbox along the left hand side to control which subform is viewable.

    Also each combo box and list box will also slightly degrade the performance. So if you have those on a subform then consider similar logic.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm considering the use of C++ for a personal project. I would like to
I'm considering to use url pattern like below: example.com/item/r6B0PmUmx07O/just-one-item example.com/item/r6B0PGgwPJWl/yet-another-item the part before slug
I have a plan to make a network redirector on android. I’m considering use
I whould like to know some opinions about OpenEJB: we are considering to use
I'm considering the use of JiBX for a project that will have to run
I am considering to use an enum with a static initializer like this: public
The case: I have a form class which handles HTML forms, cleans up fields
I would like to use SSIS to create database table flat file exports then
Consider following assumptions: I have Java 5.0 Web Application for which I'm considering to
I am considering the use of some C++11 features (like auto for instance) in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.