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

Format a Number in a Query 2

Status
Not open for further replies.

leonepaolo

Programmer
May 28, 2001
82
CA
Hi,

In a query, design view, I calculate the average of a number. I don't want to show any decimal places. How can I reformat the number within the query.

Any assistance and/or comments will be greatly appreciated.

Thanks in advance,
Paolo
 


Hi,

Use the INT function.
Code:
Int([i]expression[/i])


Skip,

[glasses] [red]Be Advised![/red] A chicken, who would drag a wagon across the road for 2 cents, is…
POULTRY in motion to PULLET for a PALTRY amount! [tongue]
 
An alternative is the Round function.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Hi,

Thanks to you both.

If I modify the SQL, it works, but then I lose the ability to modify the query in design view.

I've tried Int(Avg("Field")) in the design view Criteria row, but I get an error when I try to see the results.

Can it be done here or must one modify the SQL

Thanks again,
Paolo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top