Using MSQuery To Bring Entries From Multiple Tables Together

Pete81

New Member
Joined
Aug 27, 2015
Messages
26
Hi,

I am trying to create, using MSQuery in Excel, a single table which shows all entries for a single customer over the year. These entries will come from 12 monthly tables, on separate worksheets within the same workbook.

However, I am having trouble joining the tables, as when I try to do so for just two of the 12 tables, the result is that the entries for the second table don't show, while the entries for the first are duplicated, sometimes as much as 8 times depending on which two I put together.

I honestly don't know where I'm going wrong, and would very much appreciate some advice on the matter.

Thank you.

Peter
 

sheetspread

Well-known Member
Joined
Sep 19, 2005
Messages
5,112
The join will include all rows for a given value, so if they're not unique you can have many repeats
 

Pete81

New Member
Joined
Aug 27, 2015
Messages
26
Hi sheetspread,

Each table covers any issues for a customer on any of their orders. As each issue is unique, in either description, date and/or order number, each row entry should be unique. The problem I am having is that once I try to bring entries in from two monthly tables, I see duplications of row entries from the first month, and no entries at all from the second.
 

sheetspread

Well-known Member
Joined
Sep 19, 2005
Messages
5,112
A much better data structure would be one table for all the customers, with a form to enter each new record. If you post your query, however, I can try to find the error.
 

Forum statistics

Threads
1,081,969
Messages
5,362,484
Members
400,677
Latest member
champchamp

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top