PC Review


Reply
Thread Tools Rate Thread

decimal places in database results wizard

 
 
=?Utf-8?B?Z2g=?=
Guest
Posts: n/a
 
      31st May 2005
database results wizard is displaying 15 digit results(0.666666666666667
for example), how can i get it to display only 2. The field is a percentage
yes based on total yes/no reponses

 
Reply With Quote
 
 
 
 
Kathleen Anderson [MVP - FrontPage]
Guest
Posts: n/a
 
      31st May 2005
http://www.spiderwebwoman.com/resour...ks.asp#percent

--

~ Kathleen Anderson
Microsoft MVP - FrontPage
Spider Web Woman Designs
web: http://www.spiderwebwoman.com/resources/



gh <(E-Mail Removed)> wrote:
> database results wizard is displaying 15 digit
> results(0.666666666666667 for example), how can i get it to display
> only 2. The field is a percentage yes based on total yes/no reponses

 
Reply With Quote
 
=?Utf-8?B?SmltIEJ1eWVucw==?=
Guest
Posts: n/a
 
      31st May 2005
Use a custom query that includes a computed field such as:

Format([MyPctField],"Percent") AS FmtPct

and then report the FmtPct field rather than the MyPctField field.

If you're already using a custom query that uses SUM and GROUP BY clauses to
compute the percents, this may be more complicated. In that case, you might
want to post your existing SQL statement.

Jim Buyens
Microsoft MVP
http://www.interlacken.com
Author of:
*-----------------------------Â*-----------------------
|\----------------------------Â*-----------------------
|| Microsoft Windows SharePoint Services Inside Out
|| Microsoft Office FrontPage 2003 Inside Out
||----------------------------Â*-----------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/----------------------------Â*-----------------------
*-----------------------------Â*-----------------------

"gh" wrote:

> database results wizard is displaying 15 digit results(0.666666666666667
> for example), how can i get it to display only 2. The field is a percentage
> yes based on total yes/no reponses
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Limiting Results to 2+ Decimal Places meangene Microsoft Access Queries 4 6th May 2009 12:18 AM
Re: decimal places in results John Spencer Microsoft Access Queries 0 29th Oct 2008 04:06 PM
Re: decimal places in results Michel Walsh Microsoft Access Queries 0 29th Oct 2008 03:45 PM
Database Results Wizard formatting Excel results KarenM Microsoft Frontpage 10 28th Aug 2008 03:38 PM
dividing 4 decimal places and receiving inaccurate results Kelly Microsoft Excel Worksheet Functions 6 26th Mar 2004 03:08 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:30 PM.