Advertisement

06.28.2007 at 04:48AM PDT, ID: 22663772
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.8

How do I make this query do what I want for a bunch of productnames.....

Asked by Ricky11 in Microsoft Access Database

OKay this may seem a little complicated.

Some background : We have a access database which we use for our invoicing to customer for a t-shirt business.  We export the T-Shirts to overseas market and the country that we are in , requires us to breakdown each commodity type we are exporting with the values of each commodity.  We have been doing this manually, but we feel since all the data is already stored in access why not have access build up a list.

Here is a example
Query Name : Invoice_Filter which holds the current invoice that is open
REF     |      PRODUCT_NAME   |    UNIT PRICE     |  QTY    | GRANDTOTAL
AA1        Cotton T-Shirt "Frog"                   2.00                 4                 6
AA2        Poly  T-Shirt  "Apple"                   1.50                  6                 9
AA3       Cotton Jersey "TV"                  4.00                 12                48
AA4       Cotton T-shirt "Dog"                   2.50                 50                125
AA5       Poly T-shirt "Cool"                       18.00               8                  144
GRAND TOTAL = 332
So thats all fine, what I would like is a query that spits out the following

COMODITY VALUE
COTTON T-SHIRT $131 (TOTAL)
POLY T-SHIRT   $153 (TOTAL)
COTTON JERSEY $48 (322)
GRAND TOTAL 322

Now it seems simple as we need need to make queries to do this, and Im sure very little coding is actually required.  I think in a query I specify a critera for productname LIKE *"POLY" AND LIKE *"T-SHIRT*" this should return a list from the table of only POLY T-SHIRT and their total cost.   --- I would have to create a query for each commodity changing the criteria each time.. I dont mind doing this since there are only 20 commodities, which would result in 20 queries...   -- I can do all that, but then how would i join them all together for a final query that brings all the data together to display as follows :
COTTON T-SHIRT $131 (TOTAL)
POLY T-SHIRT   $153 (TOTAL)
COTTON JERSEY $48 (322)
GRAND TOTAL 322

I am sure some joins and GROUP BY and SUM(grandtotal) etc.. but not sure exactly.

Tks.
Start Free Trial
 
 
[+][-]06.28.2007 at 05:10AM PDT, ID: 19379782

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Access Database
Sign Up Now!
Solution Provided By: pwtucker
Participating Experts: 2
Solution Grade: A
 
 
[+][-]06.28.2007 at 05:19AM PDT, ID: 19379844

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.28.2007 at 05:41AM PDT, ID: 19380004

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32