Results 1 to 3 of 3
  1. #1
    neha is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Dec 2011
    Posts
    10

    How do I combine query results?

    I have created a database with a Query by Form where the form passes filter parameters to the query based on user input.

    What I want to do is this-
    1.The user feeds in search criteria via the form interface and runs the query to get records meeting this search criteria.
    2. User selects one (or several) of the records given by the query and stores them in a temporary location (A)
    3. User runs a second search with new search criteria to get a new set of results.
    4. User stores these new results in the same temporary location (A)
    5. User runs the same query multiple times each time with different values fed to the search parameters to obtain filtered records given to A.
    6. Push results stored at A into a report.
    7. Delete all data at A so that steps 1-6 can be repeated



    It would be nice to also have the results in a place where they can be exported to an excel spreadsheet.

    Any thoughts on how I can do this?

  2. #2
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536
    Why can't you run one query with multiple criteria to get one exportable recordset?

  3. #3
    neha is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Dec 2011
    Posts
    10
    I'm sorry I should have made myself clearer. My query's search criteria are fixed. This database is used to select products for procurement out of a vast database of medical devices.

    The person runs a search of the entire database based on device type, technical specifications, departments in which it will be used, etc. The person feeds in the filters such as:

    Look for devices with,
    Type: X-ray Machine
    Department:Radiology
    Manufacturer: Philips

    The query returns a list of all the X-ray machines by Philips. He/she selects the machine they want.
    Next the person looks for another piece of equipment needed in the radiology dept, say an ultrasound machine. So he/she runs another search,
    Type:Ultrasound, Dept: Radiology, Manufacturer: Any

    But the selected x-ray machine and the selected ultrasound machine need to be sent to the same common place. The peron has to do this more than 10 times to get a comprehensive list of all the equipment needed in a radiology department.

    Then this list has to be exported to an excel sheet.

    How do I do this?

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

Similar Threads

  1. Replies: 6
    Last Post: 05-14-2012, 07:24 AM
  2. combine query result
    By Fenvy in forum Queries
    Replies: 1
    Last Post: 06-22-2011, 05:02 PM
  3. Combine query results
    By broadm in forum Queries
    Replies: 2
    Last Post: 04-15-2011, 08:37 AM
  4. Combine Query Results to One Table
    By pr4t3ek in forum Queries
    Replies: 0
    Last Post: 12-19-2008, 06:37 AM
  5. Combine queries results in forms
    By frasilvio in forum Queries
    Replies: 12
    Last Post: 01-10-2008, 01:34 AM

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