Solved

Access Database Query formula to help with how many times a part was shipped

Posted on 2015-02-09
1
78 Views
Last Modified: 2015-02-12
How do you setup a Access query to help take a list of part numbers with many duplicates and total how many shipments were made.  for example if the part number shows on the list 5 times that part has shipped 5 times, and the report would only show the part name once with 5 shipments.
0
Comment
Question by:cg1975
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 14

Accepted Solution

by:
ThomasMcA2 earned 500 total points
ID: 40599245
You need a combination of GROUP BY and COUNT, like this:

SELECT PartNumber, Count(1) as Orders
FROM Orders
WHERE ...
GROUP BY PartNumber

Open in new window


That will give a report like this:

PartNumber         Orders
ABC123               5
CDE234               2
FGH567              10

Open in new window

0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question