473,765 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Calculating Opening Balance in a Report !

I have 2 tables ...

Customer_Master : Cust-Code, Cust_Name

Customer_Transa ctions: Cust_Code, Date, Details, Debit, Credit

I would like to generate a report in the foll manner, say from 15.1.06
to 15.02.06 :
Customer Code: 999-9876543
Customer Name: abc-xyx-abc

Date Details Debit
Credit
======= =============== ====== ======== ========
Op.Bal as at 15.1.06 0.00
78.94

15.1.06 Transaction 1
16.1.06 Transaction 2
upto
15.2.06 Transaction Last

Cl.Bal as at 15.2.06 ======== ========

Could someone please tell me how to go about generating this.

Should I use a query or use the table itself as the record source of
the report ?

Most importantly ... how to generate the OPENING BALANCE ? This really
beats me !
Thx & Best Rgds,
Prakash.

Feb 8 '06 #1
2 6815
Prakash wrote:
I have 2 tables ...

Customer_Master : Cust-Code, Cust_Name

Customer_Transa ctions: Cust_Code, Date, Details, Debit, Credit

I would like to generate a report in the foll manner, say from 15.1.06
to 15.02.06 :
Customer Code: 999-9876543
Customer Name: abc-xyx-abc

Date Details Debit
Credit
======= =============== ====== ======== ========
Op.Bal as at 15.1.06 0.00
78.94

15.1.06 Transaction 1
16.1.06 Transaction 2
upto
15.2.06 Transaction Last

Cl.Bal as at 15.2.06 ======== ========

Could someone please tell me how to go about generating this.

Should I use a query or use the table itself as the record source of
the report ?

Most importantly ... how to generate the OPENING BALANCE ? This really
beats me !
Thx & Best Rgds,
Prakash.

You can use a table or query. Whatever floats your boat. Oftentimes
people use queries since data may come from several tables to make up a
"report" record.

When you open the report, you can filter it.
Dim datFrom As Date
Dim datTo As Date
'i don't use international dates. I use mm/dd/yyyy, you can
'test for yourself
datFrom = #15.1.06#
datTo = #15.02.06#

Docmd.OpenRepor t "MyReport",,,"T XDate Between #" & _
datFrom & "# And #" & datTo & "#"
This will filter your report to only show records in the time frame.

Usually a report is called from a form. Let's say the form is called
RptForm and you have a from/to date field. For your opening balance you
can use DSum()
=Dsum("Debit"," table","TXDate < #" & Forms!RptForm!F romDate & "#") -
Dsum("Credit"," table","TXDate < #" & Forms!RptForm!F romDate & "#")

This subtracts the credits from debits for all records in the table less
than the from date in the report form. So create a field to display the
balance and use the above Dsum() statement as your control source...with
modifications to meet your criteria.

These are simply concepts. Hopefully you can adjust to suit your needs.
Feb 8 '06 #2
Thx ! I'll certainly give it a bash & get back to you on the result.
Sounds easy enough ... if i have any further queries I'll post them.

Best Rgds,
Prakash.

Feb 9 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2380
by: jlm | last post by:
I have a form which feeds table (TblEmpLeave) of Employee Leave Time (time taken off for Administrative, Annual, Sick, Compensation leave). I have EmpID, LeaveDate, LeaveType, LeaveHours fields on this form. Any employee can have multiple entries in the table (key fields are EmpID and LeaveID) for multiple dates (John Doe can take 3 days annual leave, then take 3 days sick leave in any given month. I have a BeginningBalance of hours that...
3
10593
by: Greg | last post by:
On my report I want to have an opening balance signifying all transactions up to the month selected and detailed transactions for the month selected and then a closing blance. I'm perpelexed how to do this Anyone knows how the banks do it with statement formatting? suggestions, ideas welcome.
1
4308
by: Tony Williams | last post by:
I have a table with two fields, txtvalue (a number field) and txtmonth ( a date/time field). I want to create a report that shows the difference in value between the value in txtvalue in one value of txtmonth and the value of txtvalue in another value of txtmonth and the percentage increase . For example if I have the value 1000 in 30/03/03 and the value 1100 in 30/03/04 How do I calculate the difference as 100 and the increase as 10%. I...
2
4332
by: fatimahtaher | last post by:
Hi, I am new to C# programming and my first assignment requires me to calculate total interest paid on a loan. The user will input the loan, the interest rate per month, and the monthly payment. It has to use a while loop and calculate the following: Total amount of interest paid and the number of months to pay off the loan. I am not a finance major so I have some difficulty with the logistics of how to go about doing this. My code so...
2
1874
by: mtchampi | last post by:
Hello all, I have a limited SQL background, and I am responsible for creating a monthly report that displays separate tables for the following: 1. Calculate individual monthly totals of files processed (created) that month 2. Accumulating totals per month, (eg. Jan 200 files, Feb 300 files, so Feb would now read as 500 files) 3. Take a constant number, say 10,000 records, subtract the year to date result(from the accummulating totals)...
3
5187
by: Paul H | last post by:
I have a transactions table and a balance table that look something like this: tblTransactions TransactionID (PK Autonumber) ClientID TransactionDate TransactionAmount (currency field, values must be >0) CRDR (indicates whether the transaction is a (credit or debit) StatementDate (Date stamp applied when the “Statement” report is run)
2
2535
by: eeze | last post by:
Hi Everyone I am very new to access.Can someone help me.I am trying to create a form with a daily Opening balance using sql.My tbl looks like this below.I willbe very grateful. Date Opening Balance Withdrawal Deposit Balance 2008/10/01 73100 23400 0 49700 2008/10/02 49700 13800 90000 125900
1
3020
maxx233
by: maxx233 | last post by:
I need to figure out a way to generate a report to find customers in our DB that have unused credits on their account so we can void them out periodically - we manually assign them credits, they make purchases, but if they don't use the full balance of the credits in 24 hours we can negate the leftover (it's a promotional thing.) There's two problems I'm wrestling with though - The table doesn't have a running balance field (not that big of...
2
6245
by: bossenb6 | last post by:
I have an assignment to calculate depreciation using straight line, double declining balance and sum of the years digits. Heres what I have so far, but I can't seem to figure it out. Please help!! public class LabTest1Initialize { public static void main(String args) { // declare an integer (array) array with 6 rows (6 assets) // & 5 columns (5 attributes for each asset) int assetInfo = new int ;
0
9568
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9399
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10163
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10007
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9957
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7379
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.