Solved

Form with multiple subforms

Posted on 2009-05-04
4
422 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
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…
Familiarize people with the process of utilizing SQL Server stored procedures 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 Micr…

746 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

8 Experts available now in Live!

Get 1:1 Help Now