Results 1 to 3 of 3
  1. #1
    Jlacey91 is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Dec 2015
    Posts
    5

    Need to Speed up Form on Opening, Add Filter?

    Hi I'm relatively new to building forms.



    I've created a form with a sub-form that forms a fairly large query.

    In the form I have a combo-box the is used to select a unique identifier within the sub-form which works great.

    However on opening the form it loads the details for every unique ID which is very slow.

    I need a way to stop the form from loading the information for every Field in the query, either using a filter to load one only? Or stopping the sub-form from loading until the combo box has been populated?

    Or is there something else?

    Many thanks for any help.

    Jamie

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    A great link for improving performance: http://www.granite.ab.ca/access/performancefaq.htm

  3. #3
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    In Access, there is a property of Forms and Reports called the Filter property. Using this property affects what the User will see. However, the form and or report will retrieve a larger recordset from the table(s). In other words, a query that retrieves every record can be used as a Form's Recordsource. Then, you can use the Filter property to 'Display' certain records and 'Hide' other records.

    If you know in advance what records you wish to view, you can use WHERE criteria within a query. If a form's recordsource is based on a query that uses a WHERE clause, the form will not retrieves all of the records in the table(s). The WHERE clause will be evaluated before the dataset becomes part of the Form's Recordset.

    You can practice this idea by building your own queries via the Query Designer. By adding a table to the Design Surface of a new Query Object, you will be able to add fields to the Grid at the bottom of the Query Designer Window by double clicking or dragging the name(s) of a field(s) from within the table. Once you have collumns defined for your query, you can use the Criteria field in the Grid to type expressions. These expressions will be converted to a WHERE clause in your new query.

    Two examples of expressions you could type might be ...

    1. > 20
    2. Not Like "Garbage"

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Form load speed
    By FJM in forum Access
    Replies: 2
    Last Post: 11-24-2015, 10:42 AM
  2. Best Way to Filter A Form on Opening
    By batowl in forum Forms
    Replies: 2
    Last Post: 05-14-2015, 07:10 PM
  3. Replies: 2
    Last Post: 02-27-2015, 02:49 AM
  4. Filter checkbox upon opening form
    By vickster3659 in forum Programming
    Replies: 9
    Last Post: 11-06-2014, 10:58 AM
  5. Replies: 1
    Last Post: 08-01-2012, 03:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums