Solved

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

Posted on 2011-03-20
3
295 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
[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
3 Comments
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform) 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
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…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

759 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