Solved

Access Form takes too long to load

Posted on 2013-11-24
3
710 Views
Last Modified: 2013-11-27
I have an access form with several sub-forms that takes too long to load.

I have used the Page control so that each sub-form is on a separate page because the users don't need to see all the info in one go, but they do need quick access when required.

Something I have tried is to make the sub-form control unbound and then use the Page's on_click event to set the Source Object value.  However, clicking the page's tab doesn't seem to trigger the on_click event.  The user has to click the middle of the page, which means an extra click is required.

What other techniques can I use to speed-up the load?
0
Comment
Question by:LJKMartin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 61

Expert Comment

by:mbizup
ID: 39672620
You can use the tab control's change or after update event and use a select case statement to bind/unbind subforms according to the selected tab.

But I would also recommend looking into using separate forms to handle some of the subforms, especially if your tabs/subforms contain a lot of bound controls.  That really adds up in slowing your forms down.
0
 
LVL 61

Accepted Solution

by:
mbizup earned 400 total points
ID: 39672689
This shows the Tab Control Change event method I mentioned:
http://www.fmsinc.com/microsoftaccess/performance/Forms/LateBinding.asp

Also worth looking into are these form performance tips:
http://www.fmsinc.com/microsoftaccess/Performance.html#Forms

(Note that this article also suggests minimizing the number of controls on a form, citing loading controls as the 'biggest performance hit when loading a form')
0
 
LVL 24

Assisted Solution

by:Bitsqueezer
Bitsqueezer earned 100 total points
ID: 39674251
Hi,

if you have at least Access 2007 I would recommend to use a ribbon instead. You can for example add a tab with all the page headers as buttons so this would give the user quick access to all forms in the same way as a register can. But the difference is that only the needed form will be loaded when the button in the ribbon is clicked.

Additionally if you switch the forms to "tabbed controls" (default for new databases since Access 2007) you already have tabs which the user can click. So if you have that setting and the ribbon you can quickly open the needed form and switch between any opened form - and the user has full control over all forms which should be open at the same time.

You can of course do that also with MDI forms or popup forms but in this case you would need to use a window switch control in the ribbon if the wanted form is under another.

Cheers,

Christian
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

634 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