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

Sorting form by unbound textbox 1

Status
Not open for further replies.

bill1one

Programmer
Sep 29, 2004
93
US
I have a report that displays 8 different values from my table. I then have an unbound textbox that shows the sum of those 8 values. I am trying to sort the report in descending order based on the sum. I tried using the property “Order by” but that does not seem to work. Is there a way to sort of report, based on the value in an unbound txtbox?
 
Hi!

I don't think you can. But, you can create a query and calculate the sum there. Then base your report on the query and you will be able to sort by the sum.

hth


Jeff Bridgham
Purdue University
Graduate School
Data Analyst
 
How do you calculate sums in queries. I want to total the values in the fields [Week 1], [Week 2], ...[Week 8] in the table tblName.

Thanks.
 
Hi!

Select *, [Week1] + [Week2] + [Week3] + etc As SumOfWeeks
From tblName

hth


Jeff Bridgham
Purdue University
Graduate School
Data Analyst
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top