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
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
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.
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.
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.