Results 1 to 2 of 2
  1. #1
    kagoodwin13 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Feb 2012
    Posts
    181

    Combining multiple queries into one

    I've been stuck on a problem for a few days, and despite furious Google searching, asking other DBAs, and blind attempts to force this to work, I can't seem to combine multiple queries into one.

    When I attempt to do this with the wizard, I get the following error message: "You have chosen fields from record sources which the wizard can't connect. You may have chosen fields from a table and from a query based on that table. If so, try choosing fields from only the table or only the query."

    I've also attempted to use SQL to create a union query, but I'm a little over my head when it comes to programming SQL. I'm not trained or certified to do so, and what I've picked up along the way has been through my past experience with Visual Basic and HTML.

    My database contains logistics contracted rates. In particular, this section of it has rates for rail shipments. It contains origin, destination, stops from origin to destination (ranges from 0 stops - 2 stops), and volume of shipments for each route. I've attached the database with example data. It has been scrubbed to protect confidentiality. The rates are not real dollar amounts.

    My ultimate goal is to create a report with the following:
    each route, with each stop along the way, with each route multiplied by volume to calculate total cost between each stop, and then total cost for each route.

    I would like to create a query to generate this report. With a query, I can enter criteria to make it searchable from a form. For example, if I want to see rates between Mexico City and New York City, I would like to search those two cities and generate results.



    There are also multiple contracts for each route, as the rates change on an annual basis.

    Any help creating this query and/or report would be much appreciated!

    Example.zip

  2. #2
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    What exactly are you wanting to do with the three queries in your Database?
    Can you kind of give me an example of what your final data might look like?

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Combining two queries
    By Adele in forum Queries
    Replies: 1
    Last Post: 07-16-2011, 12:17 AM
  2. combining two queries
    By camell in forum Queries
    Replies: 4
    Last Post: 03-04-2011, 02:41 PM
  3. Combining queries
    By wildlifeaccess in forum Queries
    Replies: 10
    Last Post: 09-20-2010, 07:35 AM
  4. Combining Two Queries
    By csolomon in forum Queries
    Replies: 1
    Last Post: 09-03-2009, 01:33 PM
  5. Replies: 1
    Last Post: 06-21-2007, 01:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums