Solved

creating query in record source of form compared to creating a query

Posted on 2011-03-20
3
260 Views
Last Modified: 2012-05-11
Hello,
What is difference of creating a regular query and creating on in the record source of form?
also I have 3 subforms on a main form- I read some paper on if you have subform based on query - it is better in the record source- is that true?does it matter? and is there a difference?
thank you
0
Comment
Question by:davetough
3 Comments
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Access MVP) earned 400 total points
ID: 35176250
If you mean comparing using an SQL statement as the RecordSource vs a Saved Query, JET has a better chance of optimizing the Saved Query than an SQL statement.  So, using a Saved Query is probably the better choice.

For a combo/list box, where there are just a few records in the list, based say on a small lookup table ... especially one that does not change often, then I'm not seeing a big difference between using an SQL statement vs a saved query for the Row Source.

mx
0
 
LVL 44

Assisted Solution

by:GRayL
GRayL earned 100 total points
ID: 35176313
I agree with mx, I think you are better off to use the named query as a recordsource rather than typing in the SQL in the recordsource - especially for large complex queries - especially when troubleshooting.  I would far rather modify a query affected by a table design change than go into the design view of the form and try and do it there.
0
 

Author Closing Comment

by:davetough
ID: 35176471
thanks
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now