Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 30th, 2005, 08:24 AM
Authorized User
 
Join Date: Dec 2003
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Default help for report

My table is LoanMstr in that there are LAMT1(Loan Amount 1st Installment), LAMT2(Loan Amount 2nd Installment),
RDATE(Recovery start from) IAMT(Installment Amount) field are there
My Queries is Select LAMT1,LAMT2,RDATE,IAMT,(LAMT1+LAMT2)-IAMT as CAMT(Closing Balance) from LoanMstr.
Now I want generate a report from above queries like

RDATE LAMT1 LAMT2 IAMT CAMT
Jan-2005 4000 0 500 3500
Feb-2005 3500 0 500 3000
Mar-2005 3000 0 500 2500
Apr-2005 2500 0 500 2000
May-2005 2000 0 500 1500
Jun-2005 1500 0 500 1000
Jul-2005 1000 0 500 500
Aug-2005 500 0 500 0

now how should write the code from abvoe queries please explain me hoping for a Favorable reply

Mohamed Mohiddin
Officer
__________________
Mohamed Mohiddin
Officer
 
Old November 30th, 2005, 09:24 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

This is fairly easy to do using Totals in your query. The issue is, how is the RDATE stored? Is this always "Jan-2005" for example, or would there be a range of dates like 01/01/2005, 01/14/2005, 01/20/2005, etc, that you want to compile into "Jan-2005"?



mmcdonal
 
Old November 30th, 2005, 12:34 PM
Authorized User
 
Join Date: Dec 2003
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for reply sir
Actually RDATE is in date format my problem is whin I put RDATE it should be show above so please explain me how should write the code
whin I take the report

Mohamed Mohiddin
Officer





Similar Threads
Thread Thread Starter Forum Replies Last Post
simple report and crystal report in vb.net saket123 .NET Framework 2.0 0 August 13th, 2008 06:55 AM
reset links main-report to sub-report from c#.net epanyun Crystal Reports 0 April 18th, 2008 02:41 AM
how can i add report to report viewer in asp.net wael_e BOOK: Professional SQL Server 2005 Reporting Services ISBN: 0-7645-8497-9 0 February 19th, 2008 03:19 PM
Login fail Err when view report on Report Server dillig BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 1 July 22nd, 2004 05:31 AM
How to load a Web Server report into a Report Doc dshadle Crystal Reports 3 September 30th, 2003 03:47 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.