Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2009
    Posts
    48

    Unanswered: Advantage of Query on Query?

    The following query is the row source for a combo box. The query "Vendors (query)" is a query on the table "Vendors". What is the advantage of the query below over a query directly on the table?

    SELECT [Vendors (Query)].VendorID, [Vendors (Query)].CompanyName, [Vendors (Query)].City, [Vendors (Query)].State
    FROM [Vendors (Query)];

    Thanks,

    Charles

  2. #2
    Join Date
    Feb 2004
    Location
    One Flump in One Place
    Posts
    14,912
    Depends on the query - there may be no advantage at all.

    Queries on queries are just like using functions etc in other programming languages - it allows code reuse and encapsulates logic.
    Testimonial:
    pootle flump
    ur codings are working excelent.

  3. #3
    Join Date
    Nov 2007
    Location
    Adelaide, South Australia
    Posts
    4,049
    Basically, to avoid respecifying the same things over and over.
    Owner and Manager of
    CypherBYTE, Microsoft Access Development Specialists.
    Microsoft Access MCP.
    And all around nice guy!


    "Heck it's something understood by accountants ... so it can't be 'that' difficult..." -- Healdem
    "...teach a man to code and he'll be frustrated for life! " -- georgev

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •