Results 1 to 4 of 4
  1. #1
    tagteam is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    501

    Is a table or query better basis for forms


    If i plan to have a form with most of the data from a table and maybe add a subform is it better to just base the form off of the table to to create a query and base the form on the query?
    Thanks

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Many will say that forms should be based on queries, so that's probably the conventional wisdom. That said, I normally base forms directly on tables, but I almost always open the form filtered so it's not trying to pull the entire table over, using this method:

    BaldyWeb wherecondition

    With that method, forms based on tables with millions of records still open instantly because they're only bringing the required records back.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    I base my forms on saved queries because I can have the form open with a sorted record set.
    I can still open the form filtered as Paul said, but the records will be sorted.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Alternative to using saved query object as the RecordSource is an SQL statement in the RecordSource property. The SQL statement can include sort criteria.

    Then there are the Filter and SortBy properties of the form that can be used to manage these aspects of the dataset (table or query or SQL).
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 3
    Last Post: 08-19-2013, 01:23 PM
  2. Replies: 3
    Last Post: 09-06-2012, 11:01 AM
  3. Should forms use a table or query as their control source?
    By cheyanne in forum Database Design
    Replies: 2
    Last Post: 05-30-2012, 04:00 AM
  4. Per Record basis issue, NEED Help
    By PAS123 in forum Programming
    Replies: 2
    Last Post: 12-20-2011, 10:15 AM
  5. Need help with query table issue using forms
    By KLynch0803 in forum Access
    Replies: 1
    Last Post: 06-02-2009, 10:40 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