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!

convert to percentage

Status
Not open for further replies.

psimon88

IS-IT--Management
Jul 21, 2005
66
US
Hello

I am having a problem with the following:

SELECT date, contacts, [contact pct], sales, elig, [elig pct], telco, badphone, fedex, inelig, dials, [sales pct], [fedex pct], [bad phone pct], [telco err pct]
FROM dbo.qry_8_master

I'd like the [contact pct] field to have two decimal points only. I tried left([contact pct]),4 but that didn't work.

Thanks. ADP in Access 2003.

ps
 
What's the data type of [contact pct]?

if it's a numeric type then

Val ( Format ( [contact pct], "0.00" ) ) should do it.
 
Thanks, but 'format' was not a recognized function name.
 
Yes, that works in an MDB file.

Expr1: Val(Format([calc1],"Fixed"))

Unfortunately, I was working with an ADP.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top