Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

One to Many without Repeating Rows

Status
Not open for further replies.

TJVFree

Technical User
Nov 22, 2010
236
US
I’m building a MS Access Report by connect the two tables in a query without repeating the Information from Table 1

Table 1
Account Num | Numb_Calls
123456789 | 2
987654632 | 5

Table 2
Account Num | Action
123456789 | Looks Good
123456789 | Remove
123456789 | Pass

Query
123456789 | 2 | Looks Good
123456789 | 2 | Pass

Thanks for your help
 

What's your query?
What's your outcome of your query?
What do you want to fix in your outcome?

Just a guess here: [tt]Select DISTINCT ...[/tt]

Have fun.

---- Andy
 
with in my query I would like to not show the second 123456789 | 2

But still show the
123456789 | 2 | Looks Good
| Pass

Query
123456789 | 2 | Looks Good
123456789 | 2 | Pass
 
CoreyVl,
You really need to tell us what logic you want to use to choose a single record from Table 2.

Is it random, Min, Max, or what?
Why would you have 2 records for 123456789 and why Looks Good and Pass?

Why not Remove?

And why is 987654632 not included (is it because it's not in table 2)?

Duane
Hook'D on Access
MS Access MVP
 

So you want your query to show:
[tt]
123456789 | 2 | Looks Good
<NULL> |<NULL> | Pass
[/tt]
What's your query?


Have fun.

---- Andy
 
CoreyV1,
There is no first, second, third, etc in queries unless you can tell us how the order is determined. Records are like marbles in the back of a pickup truck going down a bumpy road. Don't assume the marbles will be in the same order you loaded them into the truck box.

Duane
Hook'D on Access
MS Access MVP
 
Andy yes. That’s what I'm trying to get.

I'm playing around with the grouping and sorting on the report function now trying to see that that's what I need to do
 
I got it!

I made the queries into tables and make a relationship between the two tables then just played with the grouping and sorting a little and got it to work.

Thanks again for your help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top