?
Solved

how to tidy up queries

Posted on 2013-05-16
3
Medium Priority
?
483 Views
Last Modified: 2013-05-16
guys, i've got an access database that has multiple levels of queries. a query queries on another query and that queries on another query etc so on and so forth. sort of like inheritance for objects inheriting all the way till NSObject kinda concept.

how can i organise my queries such that i will always inherit instead of accidentally creating new base queries and possibly missing out one or 2 parameters? is there a way that i can make these queries an object and then deal with them in an OOP manner? and is this the main benefit of ORM? thanks guys!!!!
0
Comment
Question by:developingprogrammer
[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 51

Accepted Solution

by:
Gustav Brock earned 1000 total points
ID: 39170984
No. Queries live pretty much by themselves, and it is up to you to use some naming structure to indicate if some "belongs" to each other.

/gustav
0
 
LVL 58

Assisted Solution

by:Jim Dettman (Microsoft MVP/ EE MVE)
Jim Dettman (Microsoft MVP/ EE MVE) earned 1000 total points
ID: 39171011
In a RDBM system, more often then not your better off to have a specific query for each need rather then building any type of heirarchy as it's more efficent to do so.

  When working with data, it's not like working with code.   OOP concepts simply don't apply.

  With that said, you can if your using SQL Server, call stored procedures with different parameters, but still you end up getting the same result set returned, which is never the most efficent.

Jim.
0
 

Author Closing Comment

by:developingprogrammer
ID: 39173752
thanks guys, as usual fantastic feedback! = )
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Suggested Courses

741 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