Advertisement

05.14.2008 at 04:20PM PDT, ID: 23403516
[x]
Attachment Details

How could you convert a table of records into another table of the records as details records with subtotals and totals using an ADP file ?

Asked by zimmer9 in Microsoft ADP, Microsoft Excel Spreadsheet Software, Access Coding/Macros

I am developing an Access application in Access 2003 using Access as the front end and SQL Server as the back end database. I run a stored procedure that has a result set of approximately 43,000 records that are populated into a table named tblDtlBranchAll.

Could the following sample records, which exist in table tblDtlBranchAll be manipulated via a stored procedure or Query to create sorted records with totals and subtotals so that the result set would appear like the output below the dotted lines into another table which I could then be export into an Excel file using DoCmd.Transferspreadsheet ? My users like to see all their output in Excel files since they are Accountants.
 
Branch             Customer Number    Date Range           Property Type       Value
004                   111333111              0 To 6 Months       STOCKS                21.00
004                   111333111              0 To 6 Months       BONDS                  11.25
004                   888333111              0 To 6 Months       STOCKS                  8.00
004                   888333111              0 To 6 Months       BONDS                  12.25
004                   922111111              6 To 12 Months     STOCKS                44.00
004                   922111111              6 To 12 Months     BONDS                  22.25

-------------------------------------------------------------------------------------------------------------

The report takes the table records and performs subtotals and totals on the records as follows:
How can I get the results as follows with the subtotals and totals into an Excel file ?
Can a query be used if I am working with an ADP type file ?
The records are sorted by Customer Number within Date Range.


Branch              Customer Number   Date Range           Property Type       Value
004                   111333111              0 To 6 Months       STOCKS                21.00
004                   111333111              0 To 6 Months       BONDS                  11.25
Sub Total                                                                                                               33.25

004                   888333111              0 To 6 Months       STOCKS                 8.00
004                   888333111              0 To 6 Months       BONDS                 12.25
Sub Total                                                                                                               20.25

004                   922111111              6 To 12 Months     STOCKS                44.00
004                   922111111              6 To 12 Months     BONDS                  22.25
Sub Total                                                                                                               66.25
Total                                                                                                                     119.75 Start Free Trial
 
 
[+][-]05.14.2008 at 05:22PM PDT, ID: 21569772

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.

 
[+][-]05.14.2008 at 06:42PM PDT, ID: 21570057

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

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

 
[+][-]05.15.2008 at 01:44AM PDT, ID: 21571587

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.

 
[+][-]05.15.2008 at 05:40AM PDT, ID: 21572841

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

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

 
[+][-]05.15.2008 at 05:46AM PDT, ID: 21572899

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

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

 
[+][-]05.15.2008 at 08:33AM PDT, ID: 21574766

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.

 
[+][-]05.15.2008 at 10:51AM PDT, ID: 21576390

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

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

 
[+][-]05.15.2008 at 05:03PM PDT, ID: 21578896

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

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

 
[+][-]05.16.2008 at 02:20AM PDT, ID: 21581155

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

Zones: Microsoft ADP, Microsoft Excel Spreadsheet Software, Access Coding/Macros
Sign Up Now!
Solution Provided By: patrickab
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.17.2008 at 11:51PM PDT, ID: 21591768

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 / EE_QW_2_20070628