Query against 4 reports with Weeke Ending dates

unc2plo

Board Regular
Joined
Mar 18, 2002
Messages
148
I am making a vendor scorecard that tracks several metrics about each of my vendors. I have append table queries that track all the data, and individual make table queries that pull the data for each vendor and assign week ending dates to it. When I run the make table queries I get exactly what I am looking for. The 5 weekending dates and the data associated with each date.

But when I try and pull the metrics from each table into a query to make a report from I get hundreds of lines instead of just teh 5 dates and teh data from each table.

Am I missing something where weekending dates are concerned?

Thanks,
David
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Hi unc2plo,

Sounds like your ending up with a Cartesian product, which is basically every possible combination of data from the multiple tables. You need to join the tables, that is, look at your query in design view, and identify a primary key in your 'main' table, the table that has most the info you're interested in. Then click on the field and drag it over to the related field in the other query, now you should just get values from each table where they are equal on that field.

For mor info on joins and avoiding cartesian products:

http://www.web4data.com/dbmgmt/activityguide/keyterms08.html

or check Access's help for:
query, joins, cartesian

Also, consider using the query wizard, it's helpful when you're learning this stuff.

If you care to post your SQL, that might help. Open your query in design view, then click on the little drop-combo where you select between data-sheet and design view for the query (right under 'file'), and select SQL. Then just cut and paste your SQL into your post.

HTH,
 
Upvote 0

Forum statistics

Threads
1,221,517
Messages
6,160,260
Members
451,635
Latest member
nithchun

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top