<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Percentage on Total Query</title>
	<atom:link href="http://msaccesstips.com/2008/02/percentage-on-total-query/feed/" rel="self" type="application/rss+xml" />
	<link>http://msaccesstips.com/2008/02/percentage-on-total-query/</link>
	<description>Free MS-Access downloads</description>
	<lastBuildDate>Fri, 20 Jan 2012 07:03:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: a.p.r.pillai</title>
		<link>http://msaccesstips.com/2008/02/percentage-on-total-query/comment-page-1/#comment-3197</link>
		<dc:creator>a.p.r.pillai</dc:creator>
		<pubDate>Mon, 29 Aug 2011 18:56:14 +0000</pubDate>
		<guid isPermaLink="false">http://msaccesstips.com/?p=190#comment-3197</guid>
		<description>The DSum() function in the expression &lt;b&gt;Sum([ID])/DSum(“ID”,”Appointment Records”) AS Percentage&lt;/b&gt; sums-up the ID values directly from the &#039;Appointment Records&#039; Table, inclusive of the records with the Result field value Null cases.

Try after modifying DSum(“ID”,”Appointment Records”) in the above expression as &lt;b&gt;Sum([ID])/DSum(&quot;ID&quot;,”Appointment Records”,&quot;Result &gt; 0&quot;) AS Percentage.

In your SQL above, the expression have a parenthesis wrongly placed at the end. The syntax should be: &lt;/b&gt;&lt;b&gt;Sum(x) / DSum(x,y,z) As NewName&lt;/b&gt; rather than &lt;b&gt;Sum(x/Dsum(x,y,z)) As NewName&lt;/b&gt;.
</description>
		<content:encoded><![CDATA[<p>The DSum() function in the expression <b>Sum([ID])/DSum(“ID”,”Appointment Records”) AS Percentage</b> sums-up the ID values directly from the &#8216;Appointment Records&#8217; Table, inclusive of the records with the Result field value Null cases.</p>
<p>Try after modifying DSum(“ID”,”Appointment Records”) in the above expression as <b>Sum([ID])/DSum(&#8220;ID&#8221;,”Appointment Records”,&#8221;Result > 0&#8243;) AS Percentage.</p>
<p>In your SQL above, the expression have a parenthesis wrongly placed at the end. The syntax should be: </b><b>Sum(x) / DSum(x,y,z) As NewName</b> rather than <b>Sum(x/Dsum(x,y,z)) As NewName</b>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ChrisJBuchanan</title>
		<link>http://msaccesstips.com/2008/02/percentage-on-total-query/comment-page-1/#comment-3196</link>
		<dc:creator>ChrisJBuchanan</dc:creator>
		<pubDate>Mon, 29 Aug 2011 18:11:33 +0000</pubDate>
		<guid isPermaLink="false">http://msaccesstips.com/?p=190#comment-3196</guid>
		<description>My version of your solution is set out below, and works well.
SELECT [Appointment Records].Result, Count([Appointment Records].ID) AS CountOfID, Sum([ID]/DSum(&quot;ID&quot;,&quot;Appointment Records&quot;)) AS Percentage
FROM [Appointment Records]
GROUP BY [Appointment Records].Result
HAVING ((([Appointment Records].Result) Is Not Null))
ORDER BY Count([Appointment Records].ID) DESC;

However, my Results field has a number of blank fields, so the percentages (of the total ID field) are somewhat misleading.  Is there a way of correcting this?</description>
		<content:encoded><![CDATA[<p>My version of your solution is set out below, and works well.<br />
SELECT [Appointment Records].Result, Count([Appointment Records].ID) AS CountOfID, Sum([ID]/DSum(&#8220;ID&#8221;,&#8221;Appointment Records&#8221;)) AS Percentage<br />
FROM [Appointment Records]<br />
GROUP BY [Appointment Records].Result<br />
HAVING ((([Appointment Records].Result) Is Not Null))<br />
ORDER BY Count([Appointment Records].ID) DESC;</p>
<p>However, my Results field has a number of blank fields, so the percentages (of the total ID field) are somewhat misleading.  Is there a way of correcting this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Buchanan</title>
		<link>http://msaccesstips.com/2008/02/percentage-on-total-query/comment-page-1/#comment-3194</link>
		<dc:creator>Chris Buchanan</dc:creator>
		<pubDate>Mon, 29 Aug 2011 17:19:51 +0000</pubDate>
		<guid isPermaLink="false">http://msaccesstips.com/?p=190#comment-3194</guid>
		<description>Thanks for this, but it only works on Northwind.mdb.  In the later versions, they&#039;ve changed the field names.  I&#039;d be happy to send a working version of the mdb file if anyone wants it.</description>
		<content:encoded><![CDATA[<p>Thanks for this, but it only works on Northwind.mdb.  In the later versions, they&#8217;ve changed the field names.  I&#8217;d be happy to send a working version of the mdb file if anyone wants it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wordpress Themes</title>
		<link>http://msaccesstips.com/2008/02/percentage-on-total-query/comment-page-1/#comment-1307</link>
		<dc:creator>Wordpress Themes</dc:creator>
		<pubDate>Mon, 09 Aug 2010 21:41:25 +0000</pubDate>
		<guid isPermaLink="false">http://msaccesstips.com/?p=190#comment-1307</guid>
		<description>Amiable post and this mail helped me alot in my college assignement. Gratefulness you on your information.</description>
		<content:encoded><![CDATA[<p>Amiable post and this mail helped me alot in my college assignement. Gratefulness you on your information.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vishnu Vikram</title>
		<link>http://msaccesstips.com/2008/02/percentage-on-total-query/comment-page-1/#comment-144</link>
		<dc:creator>Vishnu Vikram</dc:creator>
		<pubDate>Sat, 13 Feb 2010 15:13:17 +0000</pubDate>
		<guid isPermaLink="false">http://msaccesstips.com/?p=190#comment-144</guid>
		<description>nice article to can you send the demo version of this article to the following adress.&lt;br /&gt;&lt;br /&gt;gntlas@gmail.com</description>
		<content:encoded><![CDATA[<p>nice article to can you send the demo version of this article to the following adress.</p>
<p><a href="mailto:gntlas@gmail.com">gntlas@gmail.com</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

