Solved

Summarizing data in Microsoft Access

Posted on 2014-10-15
2
199 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 57
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 47

Accepted Solution

by:
Dale Fye (Access MVP) earned 500 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now