conditional sum in form

spooky30

Registered User.
Local time
Today, 15:31
Joined
Apr 20, 2006
Messages
15
Hi all

I want to display income and expense seperately on the form till the time of last transaction--in cash book,where i will enter transactions.

Issue:

How do i display total of income and expense seperately on form using conditional sum on date,income/expense , or any other way to do it
 
Last edited:
Try This,

Create 2 Text Boxes on the Footer of the form

Write the Formula on the Control source Property of the Text Box

=DSum("Amount","TableName","Amount >0")
for Income Values - assuming that these are entered in Amount Field as positive values

=DSum("Amount","TableName","Amount <0")

for Expenses Totals.


visit my site http://msaccessblog.blogspot.com/ for tips and tricks in Form Desinging.
 
Try This,

Create 2 Text Boxes on the Footer of the form

Write the Formula on the Control source Property of the Text Box

=DSum("Amount","TableName","Amount >0")
for Income Values - assuming that these are entered in Amount Field as positive values

=DSum("Amount","TableName","Amount <0")

for Expenses Totals.


visit my site http://msaccessblog.blogspot.com/ for tips and tricks in Form Desinging.
 

Users who are viewing this thread

Back
Top Bottom