Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

return report by date

Status
Not open for further replies.

zxmax

Technical User
Nov 24, 2003
179
CA
Greeting, i have a main form, with a subform. The sub form , i have 4 tables, IDdeposit , DepositDate , and DepositAmount and WithdrawAmount

i have an option to be able to print by date, so the user could select a date range

everything works fine in my report, but i realized that when we print by date, it only calculate the entry of these dates. What i would like to do is to display the records that is selected by the date range, but to include all of the previous entry in the calculation

My forumla is inside the Report itself, which is something like this, Total = (Totaldeposit-Totalwithdraw)

i hope i was clear explaining , if not let me knwo i'll explain it better,

Thanks for any inputs ,or help

 
i have this line :

=DSum("[Sales_amt]","tblSales", "[Resident_id] = '1234'")

what i want to do is, instead of specifing the "residents_id, i want it to be selected from my sql statement ,

Could that be done ?

i have this in my sql statement under critiria for the Resident_id : [forms]![Residents]![Resident_ID]

so that means, my Resident_ID is selected from the main form, so i want the DSUM to sum only for the selected Resident,

i hope i was clear explaining

Thanks for anyadvise,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top