Solved

Form with multiple subforms

Posted on 2009-05-04
4
423 Views
Last Modified: 2013-11-29
Hi Guys
I have a Main Form with a tab control where in the 1st page(tad) named Status i am showing multiple subforms from multiple queries.
The purpose of this tab is show a curtrent status of the customer, i have 5 subforms in this tab, is there a way or tips that i should use to make it load faster, what should i do to avoid slowdown in my system, should i populate the information only when click in the tab, please give a hand with this, this is a very important form but i do not want to slow down my sytem
any hints of proper technical details that i should use to minimize the risk of slowing down the db

best regards
0
Comment
Question by:titorober23
  • 2
4 Comments
 

Author Comment

by:titorober23
ID: 24294881
Should i leave the subform area blank and once they select a customer in the main form, then load the subforms????
0
 
LVL 44

Expert Comment

by:GRayL
ID: 24294886
Perhaps a look at your Relationship diagram??
0
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 250 total points
ID: 24295085
Too many subforms can certainly cause performance issues; you might want to load the Subform control ONLY when the user clicks the tab page. You can use the Tab control's Change event for this:

Select Case Me.YourTabControl
  Case 0  '/this is the PageIndex property
    Me.SubformControl1.SourceObject = "YourSubformName"
    Me.SubformControl2.SourceObject = "OtherSubformName"
  case 1
End Select

Also, you should remove those items when the form is closed, to make sure that Access doesn't "remember" this for you:

Me.SubformControl1.SourceObject = ""
Me.SubformControl2.SourceObject = ""
etc etc
0
 

Author Comment

by:titorober23
ID: 24295108
So i should have all the subform area blanks, and on the main form include in the ON CURRENT event to load the subforms, plus in the tabswhen they click on the page then load the subforms
Is this correct?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now