Question Having column only show up once in query

kloot1rr

Registered User.
Local time
Today, 09:08
Joined
Jun 10, 2015
Messages
39
Hello fellow programmers,

I just started my internship a couple weeks ago so I am still relatively new, but here's my problem...I have created a query to run the weekly statistics for my data but one column continues to show multiple times. I want the "Left in Estock" and "Left in Estock Line Items" to only show once, instead of all the way down the side. Check out the attachments. It is probably a very easy fix, but hey I'm learning.

Thanks in advance.
 

Attachments

  • pic52.png
    pic52.png
    43.6 KB · Views: 147
  • pic53.png
    pic53.png
    27.4 KB · Views: 154
You don't appear to have any relationship between the two tables in your query?
 
Hey Bob,

Thanks for replying first off. Secondly, when I make a connection between the 2 Date fields from both tables (include ALL records from "Master Estock Report" and only those records from "Left in Estock Totals" where the joined fields are equal) I lose the final two Estock statistics. To make my data work previously I used an append query for "Left in Estock" and "Left in Estock Line Items" to append to the Master data table. Would it be wise to make another append query on top of the query I am making?

Thanks for your help.
 
Show some data from both tables and which result you want to get, (show it, don't describe it)!
 
Pic 52 is what I have, Pic 54 is what I want
 

Attachments

  • pic52.png
    pic52.png
    43.6 KB · Views: 134
  • pic54.png
    pic54.png
    39.7 KB · Views: 136
Sorry, but I don't think you can get that in a query!
Yeah okay - maybe if you use a union query.
 
Last edited:
How do I go about that? I have never used a union query.
 
I may be misunderstanding what you asking to do kloot1rr.

Would a RIGHT JOIN (all the rows from one table and only the rows from another table that are joined ON a field where they are equal) be appropriate for what you are trying to do?

If that works you could you the Query Designer to set the join properties between the two tables to simplify the process.

If you need more details about my suggestion let me know
 
I have made a description in the attached file.
 

Attachments

You're both welcome, good luck. :)
 

Users who are viewing this thread

Back
Top Bottom