Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Summarizing data in Microsoft Access

Posted on 2014-10-15
2
Medium Priority
?
229 Views
Last Modified: 2014-10-15
Experts,

In SAS I am able to use a Proc Summary and it gives me exactly what I want.  Is there  a way in Access to get the same results.

My SAS statement looks like this.

Proc Summary Data=CLAIMS_TOT;
  Var BILLED ADJUD CLAIM_CT;
  BY MAINT FFSORCAPIND LICENSE PROV_NAME;
  Output Out=Total_APR_2013 Sum=;
Run;

It gives me totals for Billed ADJUD and CLAIM_CT by prov_name within license within ffsocapind within Maint(DATE)
0
Comment
Question by:morinia
2 Comments
 
LVL 58
ID: 40382674
In Access, that would be accomplished with a SQL Statement either by:

1. Writing a SQL statement directly.
2. Using a querydef (which is a saved SQL Statement along with some properties to control processing).
3. Using a Domain Funtion, such as DSUM()  (you typically use this in places where SQL is not allowed, but an expression is - all the Domain Functions represent simple SQL Statements).
4. You write a custom VBA function to return the data you want and there are numerous ways that you might write that to actually grab the data..

Jim.
0
 
LVL 49

Accepted Solution

by:
Dale Fye earned 2000 total points
ID: 40382691
So the SQL query might look like:

SELECT Maint, FFSORDAPIND, LICENSE, Prov_Name, Sum(Billed) as SumOfBilled,
    SUM(AJDUD) as SumOfAdjud, SUM(CLAIM_CT) as SumOfClaimCt
FROM YourTableName
GROUP BY MAINT, FFSORCAPIND, LICENSE, PROV_NAME;
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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

The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
Windows Explorer let you handle zip folders nearly as any other folder: Copy, move, change, and delete, etc. In VBA you can also handle normal files and folders, but zip folders takes a little more - and that you'll find here.
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 …
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
Suggested Courses

972 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