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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sum() Problem?

Status
Not open for further replies.

Buj123

Programmer
Jan 5, 2004
96
US
Hi,
This seems simple but not working for me.
i have 3 tables that have relationship in between. I have created a Query out of those 3 and used that query as Recordsource to my report. And the report has all the fields that the query has.
I should show the Total of "TotalSavings" filed. So i have added a textbox to the report and in its controlsource i have entered like below
=Sum(qrySSScoreCard!TotalSavings)

But its not working. "qrySSScoreCard" is my query.
 
=Sum([TotalSavings]) should be all you need. Put your textbox in the Group Footer or Report footer.

HTH
Lightning
 
I'm not sure if this can be done, but here goes.

I have a textbox, TxtStartDate, on a form which displays the current date, Date(). What I want in another text box is to display the current date plus, say, 10 days. Easy enought you may think, but the tricky part is that I have to take into account weekends and public holidays and exclude these from the 10 days.

My initial thoughts are to use the NETWORKDAYS function but don't know how to code this.

Any ideas?
 
My sincere apologies I've obviously posted in the wrongly. I blame lack of sleep.

Sorry.
SmallTime
ZZzzz...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top