Microsoft Access Forums

Go Back   Microsoft Access Forums > Access Forums > Access

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 10-05-2009, 02:50 PM
choppper choppper is offline Windows XP Access 2000 (version 9.0)
Novice
 
Join Date: Oct 2009
Posts: 1
choppper is on a distinguished road
Default ms access - lookup / find product name for lowest price in category

Hi,

I've got a table with the following information:

Vendor ProductCategory Price
farm1 apples $1
farm2 apples $2
store1 bandaids $10
store2 bandaids $7

I want to run a query to find the minimum price for each category, and also show the vendor. So the result should be:

Vendor ProductCategory Price
farm1 apples $1
store2 bandaids $7

Of course, if I group by category and the minimum of price, it will find the cheapest in category, but I'll lose visibility to the vendor. I've tried setting it up as two tables - a product table and a product category table, but it hasn't worked so far.

Thanks for the help!
Reply With Quote
  #2  
Old 10-06-2009, 12:00 AM
dcrake's Avatar
dcrake dcrake is offline Windows XP Access 2003 (version 11.0)
Expert
 
Join Date: Aug 2009
Posts: 438
Blog Entries: 1
dcrake is on a distinguished road
Default

If you bring in the table again and create links on both the cost and the item and bring down the vendor it should dispplay the correct vendor.

David
__________________
www.xcraftlimited.co.uk The Home of Simple Software Solutions.
Reply With Quote
Reply

Bookmarks

Tags
access, lookup, query, relational databases

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
return last updated date for each product jonnyuk3 Queries 0 06-17-2009 02:38 AM
Multiple Price Columns kmwhitt Access 0 04-04-2009 07:48 PM
Microsoft Access Lookup tables bitert01 Forms 1 02-20-2009 11:55 AM
Product in a Summary Query Fletch Queries 0 12-11-2008 12:14 PM
Grouping a subcategory into a higher category brandon Access 0 08-19-2008 09:12 AM


All times are GMT -8. The time now is 01:52 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.