If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Refreshing tab problem
Hi to all,
I do not know if anyone can help me on this one. I have a form that contains a tab control with 15 tabs on it, tab 1 contains approx 120 fields, half of them are calulated fields that are being updated on the current event of the form thru a private sub. On the tab control, I have 6 page with 1 subfrm on it, 2 pages with 4, 1 page with either 6,7 or 9 subfrm, very few subs are failry complex but most of them contains less than 25 controls on them. Loading the main form that have the tab control takes less than 1 sec. The pages are program to be loaded on a per demand only,sample code I currently use: Case Me.pagProfile.PageIndex Me.cmdHome.Visible = True Me.Application.Echo False Call Disconnect(intIndex) If Len(subfrmBranchSignage.SourceObject) = 0 Then subfrmBranchSignage.SourceObject = "subfrmBranchSignage" subfrmBranchSignage.LinkChildFields = "IdBranch" subfrmBranchOther.SourceObject = "subfrmBranchOther" subfrmBranchOther.LinkChildFields = "IdBranch" subfrmBranchAccess.SourceObject = "subfrmBranchAccess" subfrmBranchAccess.LinkChildFields = "IdBranch" subfrmBranchBarrier.SourceObject = "subfrmBranchBarrier" subfrmBranchBarrier.LinkChildFields = "IdBranch" subfrmBranchBasics.SourceObject = "subfrmBranchBasics" subfrmBranchBasics.LinkChildFields = "IdBranch" subfrmBranchElectrical.SourceObject = "subfrmBranchElectrical" subfrmBranchElectrical.LinkChildFields = "IdBranch" subfrmBranchConcept.SourceObject = "subfrmBranchConcept" subfrmBranchConcept.LinkChildFields = "IdBranch" Me.Application.Echo True 'reset variable for the next disconnect() call intIndex = Me.pagProfile.PageIndex End If Private Sub DisconnectOptions() 'disconnect all objects in option page If Len(frmRenewalOptions.SourceObject) 0 Then frmRenewalOptions.SourceObject = "" ' frmRenewalOptions.LinkChildFields = "IdBranch" frmExpansionRights.SourceObject = "" ' frmExpansionRights.LinkChildFields = "IdBranch" frmCancellationRights.SourceObject = "" ' frmCancellationRights.LinkChildFields = "IdBranch" frmRefusalRights.SourceObject = "" ' frmRefusalRights.LinkChildFields = "IdBranch" End If End Sub the commented lines generate problems. The main problem is when I load a new tab, the controls in them are turning white while waiting to painted, (just imagine seeing your screen changing line per line of pixel), this loading can take up to 3 secs. Is there anything that can be done to improve this process, the white boxes thing ?? My back end is on a network and just had it tested today regaring the so call updating delay, I am currently waiting for the detailled report but from the first look at it, it will not be the problem My back end contains approx 150 tables broken down to respect as much as possible normalization. I currently use intel 3.4 Ghtz CPU, 2gig or RAM and XP Pro with Access 2007. Many thanks |
Thread Tools | |
Display Modes | |
|
|