Results 1 to 4 of 4
  1. #1
    Mrdude1020 is offline Novice
    Windows 8 Access 2013
    Join Date
    Jul 2014
    Location
    Boone
    Posts
    11

    How to Search through Multiple Tables that are different in one database.


    Im working on a cross comparison database for the three food vendors for my boss. What is the best way to search across the three tables? They all have similar record titles but arent all uniform, and I cant change the records because I have to have the record names the same as the files that are being exported from the vendors websites. What would be the easiest way to search across three similar but not unifrom tables in one database? Ive also tried to make three buttons to update the lists after I download the items to have up-to-date prices on the products but am unsure if they are actually working correctly. Any advice would be greatly appreicated.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    You want a crosstab query OR
    IF you can match the items then you want either an OUTER join query.

    XTAB:
    Make a UNION queries that has the same column count/subject (they dont need to have the same field names, just the same type data)

    select vendor, item, cost from tbl1
    union
    select vendor, item, cost from tbl2
    union
    select vendor, item, cost from tbl3

    save as qs3VendorPrices.

    THEN use the wizard to create a CROSSTAB query from qs3VendorPrices and it will build a list for you on matching items.
    ITEM, VENDOR1, vendor2, vendor2
    spam $ $ $
    Tuna $ $ $

  3. #3
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    if you seek to compare items - which are differently named, and there is no other field by which to join tables - then the real fix is to make a translation table:
    Common: Variation
    Apple : Granny
    Apple : Macintosh

    It would need to contain every item with a common and all variations. Making that could be a lot of grunt work. But once you have it - then you can join to it in each of the 3 tables separately. Once all tables are joined to it then you have the common field in all three tables and can then join on the common field to put the 3 items side by side.

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Dude,
    It would be helpful if you could give an example, or more specific description, since readers seem unsure about your real requirement.

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

Similar Threads

  1. Search Multiple Tables (Identical Fields)
    By tristangemus in forum Queries
    Replies: 1
    Last Post: 06-21-2013, 10:32 AM
  2. Multiple Tables, Multiple Filters + Search
    By michael.legge@rbc.com in forum Access
    Replies: 1
    Last Post: 05-09-2013, 03:15 PM
  3. Replies: 11
    Last Post: 11-09-2012, 08:17 AM
  4. Search Across Multiple Tables
    By Tomfernandez1 in forum Access
    Replies: 8
    Last Post: 02-25-2011, 09:11 PM
  5. How can I search multiple tables?
    By botts121 in forum Access
    Replies: 4
    Last Post: 02-02-2010, 06:39 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