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

format number in Query

Status
Not open for further replies.

drmichaelw

IS-IT--Management
Oct 5, 2002
66
0
0
US

SELECT system, total, system/total AS [sys/total]
FROM table;

Iwould like to return only one decimal place instead of many for [sys/total].
How can I format to one decimal place?
 
Try this:

SELECT system, total, Format(system/total,"###,###,###.#") AS [sys/total] FROM table;
Anthony J. DeSalvo
President - ScottTech Software
"Integrating Technology with Business"
 
Worked well!
How do I add in the leading and trailing 0 before and after the decimal place.
 
Replace the # symbol with a zero (0).

You can see all the Format Property information right from the embedded Access Help. Anthony J. DeSalvo
President - ScottTech Software
"Integrating Technology with Business"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top