 




<?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: Expression Builder, Calculation confusion in Access 2007</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/expression-builder/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/expression-builder/</link>
	<description></description>
	<lastBuildDate>Wed, 22 May 2013 12:21:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: tlsanders1</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/expression-builder/#comment-81748</link>
		<dc:creator>tlsanders1</dc:creator>
		<pubDate>Wed, 22 Sep 2010 19:52:31 +0000</pubDate>
		<guid isPermaLink="false">#comment-81748</guid>
		<description><![CDATA[I just re-looked at the original question.  I cannot tell if the original post that I was reading as an Immediate If is Upper Case I, Upper Case I, Lower Case F or Upper Case I, Lower Case L, Lower Case F.  If the original SQL had eye el eff, maybe that was triggering the syntax error.]]></description>
		<content:encoded><![CDATA[<p>I just re-looked at the original question.  I cannot tell if the original post that I was reading as an Immediate If is Upper Case I, Upper Case I, Lower Case F or Upper Case I, Lower Case L, Lower Case F.  If the original SQL had eye el eff, maybe that was triggering the syntax error.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/expression-builder/#comment-78129</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Mon, 14 Jun 2010 13:31:58 +0000</pubDate>
		<guid isPermaLink="false">#comment-78129</guid>
		<description><![CDATA[The second parameter is not mandatory, if the condition is not met and the sencond parameter is not specified, it will return null.]]></description>
		<content:encoded><![CDATA[<p>The second parameter is not mandatory, if the condition is not met and the sencond parameter is not specified, it will return null.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tlsanders1</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/expression-builder/#comment-78127</link>
		<dc:creator>tlsanders1</dc:creator>
		<pubDate>Mon, 14 Jun 2010 12:09:18 +0000</pubDate>
		<guid isPermaLink="false">#comment-78127</guid>
		<description><![CDATA[The Immediate If (IIF) needs another parameter.  You have told it what to return if % of Fire Calls is &gt;= 10, but you did not tell it what to return if that is not true.  IIF(% of Fire Calls &gt;= 10, &quot;25&quot;,&quot;1&quot;) or some such.]]></description>
		<content:encoded><![CDATA[<p>The Immediate If (IIF) needs another parameter.  You have told it what to return if % of Fire Calls is &gt;= 10, but you did not tell it what to return if that is not true.  IIF(% of Fire Calls &gt;= 10, &#8220;25&#8243;,&#8221;1&#8243;) or some such.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/expression-builder/#comment-78088</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Fri, 11 Jun 2010 14:00:13 +0000</pubDate>
		<guid isPermaLink="false">#comment-78088</guid>
		<description><![CDATA[Thanks Phil.

I assume you posted the query that works well, not the modified one that gives you the syntax error.

Try using this SQL command:

SELECT [Query Top Gun Attendance].[Query full name, Active FF].[Members Full Name], [Query LOSAP Report]![Query Top Gun Attendance.CountOfIncident # yyyy-123]/[Query LOSAP Report]![CountOfIncident # yyyy-1231]*100 AS [% of fire Calls made], [Query Sleep Over Count].[CountOftracking number], [Query Top Gun Drill Count].[CountOftracking number], [Query Company Meeting Count].[CountOftracking number], [Query WorkParty,Fund,FirePrev,Perade,Funeral,Other Count].[CountOftracking number], [Query State Training, Official Class, OSHA - sum of points].[SumOfService Award Points for Certificate class], [Query Position Points].[1st Position Held Elected or Appointed], [Query Position Points].[Service Award Point Value],&lt;b&gt; Iif([% of fire Calls made]&gt;=10,25) AS [YourNewFieldName]&lt;/b&gt;
FROM [Query Position Points] RIGHT JOIN ([Query Company Meeting Count] RIGHT JOIN ([Query WorkParty,Fund,FirePrev,Perade,Funeral,Other Count] RIGHT JOIN ([Query State Training, Official Class, OSHA - sum of points] RIGHT JOIN ([Query Top Gun Drill Count] RIGHT JOIN ([Query Sleep Over Count] RIGHT JOIN ([Query LOSAP Report] RIGHT JOIN [Query Top Gun Attendance] ON [Query LOSAP Report].[Query Top Gun Attendance].[Query full name, Active FF].[Members Full Name] = [Query Top Gun Attendance].[Query full name, Active FF].[Members Full Name]) ON [Query Sleep Over Count].[Query full name, Active FF].[Members Full Name] = [Query Top Gun Attendance].[Query full name, Active FF].[Members Full Name]) ON [Query Top Gun Drill Count].[Query full name, Active FF].[Members Full Name] = [Query Top Gun Attendance].[Query full name, Active FF].[Members Full Name]) ON [Query State Training, Official Class, OSHA - sum of points].[Query full name, Active FF].[Members Full Name] = [Query Top Gun Attendance].[Query full name, Active FF].[Members Full Name]) ON [Query WorkParty,Fund,FirePrev,Perade,Funeral,Other Count].[Query full name, Active &amp; Social].[Members Full Name] = [Query Top Gun Attendance].[Query full name, Active FF].[Members Full Name]) ON [Query Company Meeting Count].[Query full name, Active &amp; Social].[Members Full Name] = [Query Top Gun Attendance].[Query full name, Active FF].[Members Full Name]) ON [Query Position Points].[Members Full Name] = [Query Top Gun Attendance].[Query full name, Active FF].[Members Full Name]
GROUP BY [Query Top Gun Attendance].[Query full name, Active FF].[Members Full Name], [Query LOSAP Report]![Query Top Gun Attendance.CountOfIncident # yyyy-123]/[Query LOSAP Report]![CountOfIncident # yyyy-1231]*100, [Query Sleep Over Count].[CountOftracking number], [Query Top Gun Drill Count].[CountOftracking number], [Query Company Meeting Count].[CountOftracking number], [Query WorkParty,Fund,FirePrev,Perade,Funeral,Other Count].[CountOftracking number], [Query State Training, Official Class, OSHA - sum of points].[SumOfService Award Points for Certificate class], [Query Position Points].[1st Position Held Elected or Appointed], [Query Position Points].[Service Award Point Value];

If you get errors, please post the complete error message, and the SQL of the query that generates the error.]]></description>
		<content:encoded><![CDATA[<p>Thanks Phil.</p>
<p>I assume you posted the query that works well, not the modified one that gives you the syntax error.</p>
<p>Try using this SQL command:</p>
<p>SELECT [Query Top Gun Attendance].[Query full name, Active FF].[Members Full Name], [Query LOSAP Report]![Query Top Gun Attendance.CountOfIncident # yyyy-123]/[Query LOSAP Report]![CountOfIncident # yyyy-1231]*100 AS [% of fire Calls made], [Query Sleep Over Count].[CountOftracking number], [Query Top Gun Drill Count].[CountOftracking number], [Query Company Meeting Count].[CountOftracking number], [Query WorkParty,Fund,FirePrev,Perade,Funeral,Other Count].[CountOftracking number], [Query State Training, Official Class, OSHA - sum of points].[SumOfService Award Points for Certificate class], [Query Position Points].[1st Position Held Elected or Appointed], [Query Position Points].[Service Award Point Value],<b> Iif([% of fire Calls made]&gt;=10,25) AS [YourNewFieldName]</b><br />
FROM [Query Position Points] RIGHT JOIN ([Query Company Meeting Count] RIGHT JOIN ([Query WorkParty,Fund,FirePrev,Perade,Funeral,Other Count] RIGHT JOIN ([Query State Training, Official Class, OSHA - sum of points] RIGHT JOIN ([Query Top Gun Drill Count] RIGHT JOIN ([Query Sleep Over Count] RIGHT JOIN ([Query LOSAP Report] RIGHT JOIN [Query Top Gun Attendance] ON [Query LOSAP Report].[Query Top Gun Attendance].[Query full name, Active FF].[Members Full Name] = [Query Top Gun Attendance].[Query full name, Active FF].[Members Full Name]) ON [Query Sleep Over Count].[Query full name, Active FF].[Members Full Name] = [Query Top Gun Attendance].[Query full name, Active FF].[Members Full Name]) ON [Query Top Gun Drill Count].[Query full name, Active FF].[Members Full Name] = [Query Top Gun Attendance].[Query full name, Active FF].[Members Full Name]) ON [Query State Training, Official Class, OSHA - sum of points].[Query full name, Active FF].[Members Full Name] = [Query Top Gun Attendance].[Query full name, Active FF].[Members Full Name]) ON [Query WorkParty,Fund,FirePrev,Perade,Funeral,Other Count].[Query full name, Active &amp; Social].[Members Full Name] = [Query Top Gun Attendance].[Query full name, Active FF].[Members Full Name]) ON [Query Company Meeting Count].[Query full name, Active &amp; Social].[Members Full Name] = [Query Top Gun Attendance].[Query full name, Active FF].[Members Full Name]) ON [Query Position Points].[Members Full Name] = [Query Top Gun Attendance].[Query full name, Active FF].[Members Full Name]<br />
GROUP BY [Query Top Gun Attendance].[Query full name, Active FF].[Members Full Name], [Query LOSAP Report]![Query Top Gun Attendance.CountOfIncident # yyyy-123]/[Query LOSAP Report]![CountOfIncident # yyyy-1231]*100, [Query Sleep Over Count].[CountOftracking number], [Query Top Gun Drill Count].[CountOftracking number], [Query Company Meeting Count].[CountOftracking number], [Query WorkParty,Fund,FirePrev,Perade,Funeral,Other Count].[CountOftracking number], [Query State Training, Official Class, OSHA - sum of points].[SumOfService Award Points for Certificate class], [Query Position Points].[1st Position Held Elected or Appointed], [Query Position Points].[Service Award Point Value];</p>
<p>If you get errors, please post the complete error message, and the SQL of the query that generates the error.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: phil12550</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/expression-builder/#comment-78076</link>
		<dc:creator>phil12550</dc:creator>
		<pubDate>Fri, 11 Jun 2010 03:31:21 +0000</pubDate>
		<guid isPermaLink="false">#comment-78076</guid>
		<description><![CDATA[to make it a little easier, this is the entry taken from the field of the query in question. 

% of fire Calls made: [Query LOSAP Report]![Query Top Gun Attendance.CountOfIncident # yyyy-123]/[Query LOSAP Report]![CountOfIncident # yyyy-1231]*100

this expression creates a number ie:  23.45
its this number that I want to do the calculation to say “if &gt;= 10 then 25”
if that makes any sense]]></description>
		<content:encoded><![CDATA[<p>to make it a little easier, this is the entry taken from the field of the query in question. </p>
<p>% of fire Calls made: [Query LOSAP Report]![Query Top Gun Attendance.CountOfIncident # yyyy-123]/[Query LOSAP Report]![CountOfIncident # yyyy-1231]*100</p>
<p>this expression creates a number ie:  23.45<br />
its this number that I want to do the calculation to say “if &gt;= 10 then 25”<br />
if that makes any sense</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: phil12550</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/expression-builder/#comment-78075</link>
		<dc:creator>phil12550</dc:creator>
		<pubDate>Fri, 11 Jun 2010 03:21:32 +0000</pubDate>
		<guid isPermaLink="false">#comment-78075</guid>
		<description><![CDATA[ok i think i found the SQL and its really long. so here is the cut and paste:

SELECT [Query Top Gun Attendance].[Query full name, Active FF].[Members Full Name], [Query LOSAP Report]![Query Top Gun Attendance.CountOfIncident # yyyy-123]/[Query LOSAP Report]![CountOfIncident # yyyy-1231]*100 AS [% of fire Calls made], [Query Sleep Over Count].[CountOftracking number], [Query Top Gun Drill Count].[CountOftracking number], [Query Company Meeting Count].[CountOftracking number], [Query WorkParty,Fund,FirePrev,Perade,Funeral,Other Count].[CountOftracking number], [Query State Training, Official Class, OSHA - sum of points].[SumOfService Award Points for Certificate class], [Query Position Points].[1st Position Held Elected or Appointed], [Query Position Points].[Service Award Point Value]
FROM [Query Position Points] RIGHT JOIN ([Query Company Meeting Count] RIGHT JOIN ([Query WorkParty,Fund,FirePrev,Perade,Funeral,Other Count] RIGHT JOIN ([Query State Training, Official Class, OSHA - sum of points] RIGHT JOIN ([Query Top Gun Drill Count] RIGHT JOIN ([Query Sleep Over Count] RIGHT JOIN ([Query LOSAP Report] RIGHT JOIN [Query Top Gun Attendance] ON [Query LOSAP Report].[Query Top Gun Attendance].[Query full name, Active FF].[Members Full Name] = [Query Top Gun Attendance].[Query full name, Active FF].[Members Full Name]) ON [Query Sleep Over Count].[Query full name, Active FF].[Members Full Name] = [Query Top Gun Attendance].[Query full name, Active FF].[Members Full Name]) ON [Query Top Gun Drill Count].[Query full name, Active FF].[Members Full Name] = [Query Top Gun Attendance].[Query full name, Active FF].[Members Full Name]) ON [Query State Training, Official Class, OSHA - sum of points].[Query full name, Active FF].[Members Full Name] = [Query Top Gun Attendance].[Query full name, Active FF].[Members Full Name]) ON [Query WorkParty,Fund,FirePrev,Perade,Funeral,Other Count].[Query full name, Active &amp; Social].[Members Full Name] = [Query Top Gun Attendance].[Query full name, Active FF].[Members Full Name]) ON [Query Company Meeting Count].[Query full name, Active &amp; Social].[Members Full Name] = [Query Top Gun Attendance].[Query full name, Active FF].[Members Full Name]) ON [Query Position Points].[Members Full Name] = [Query Top Gun Attendance].[Query full name, Active FF].[Members Full Name]
GROUP BY [Query Top Gun Attendance].[Query full name, Active FF].[Members Full Name], [Query LOSAP Report]![Query Top Gun Attendance.CountOfIncident # yyyy-123]/[Query LOSAP Report]![CountOfIncident # yyyy-1231]*100, [Query Sleep Over Count].[CountOftracking number], [Query Top Gun Drill Count].[CountOftracking number], [Query Company Meeting Count].[CountOftracking number], [Query WorkParty,Fund,FirePrev,Perade,Funeral,Other Count].[CountOftracking number], [Query State Training, Official Class, OSHA - sum of points].[SumOfService Award Points for Certificate class], [Query Position Points].[1st Position Held Elected or Appointed], [Query Position Points].[Service Award Point Value];]]></description>
		<content:encoded><![CDATA[<p>ok i think i found the SQL and its really long. so here is the cut and paste:</p>
<p>SELECT [Query Top Gun Attendance].[Query full name, Active FF].[Members Full Name], [Query LOSAP Report]![Query Top Gun Attendance.CountOfIncident # yyyy-123]/[Query LOSAP Report]![CountOfIncident # yyyy-1231]*100 AS [% of fire Calls made], [Query Sleep Over Count].[CountOftracking number], [Query Top Gun Drill Count].[CountOftracking number], [Query Company Meeting Count].[CountOftracking number], [Query WorkParty,Fund,FirePrev,Perade,Funeral,Other Count].[CountOftracking number], [Query State Training, Official Class, OSHA - sum of points].[SumOfService Award Points for Certificate class], [Query Position Points].[1st Position Held Elected or Appointed], [Query Position Points].[Service Award Point Value]<br />
FROM [Query Position Points] RIGHT JOIN ([Query Company Meeting Count] RIGHT JOIN ([Query WorkParty,Fund,FirePrev,Perade,Funeral,Other Count] RIGHT JOIN ([Query State Training, Official Class, OSHA - sum of points] RIGHT JOIN ([Query Top Gun Drill Count] RIGHT JOIN ([Query Sleep Over Count] RIGHT JOIN ([Query LOSAP Report] RIGHT JOIN [Query Top Gun Attendance] ON [Query LOSAP Report].[Query Top Gun Attendance].[Query full name, Active FF].[Members Full Name] = [Query Top Gun Attendance].[Query full name, Active FF].[Members Full Name]) ON [Query Sleep Over Count].[Query full name, Active FF].[Members Full Name] = [Query Top Gun Attendance].[Query full name, Active FF].[Members Full Name]) ON [Query Top Gun Drill Count].[Query full name, Active FF].[Members Full Name] = [Query Top Gun Attendance].[Query full name, Active FF].[Members Full Name]) ON [Query State Training, Official Class, OSHA - sum of points].[Query full name, Active FF].[Members Full Name] = [Query Top Gun Attendance].[Query full name, Active FF].[Members Full Name]) ON [Query WorkParty,Fund,FirePrev,Perade,Funeral,Other Count].[Query full name, Active &amp; Social].[Members Full Name] = [Query Top Gun Attendance].[Query full name, Active FF].[Members Full Name]) ON [Query Company Meeting Count].[Query full name, Active &amp; Social].[Members Full Name] = [Query Top Gun Attendance].[Query full name, Active FF].[Members Full Name]) ON [Query Position Points].[Members Full Name] = [Query Top Gun Attendance].[Query full name, Active FF].[Members Full Name]<br />
GROUP BY [Query Top Gun Attendance].[Query full name, Active FF].[Members Full Name], [Query LOSAP Report]![Query Top Gun Attendance.CountOfIncident # yyyy-123]/[Query LOSAP Report]![CountOfIncident # yyyy-1231]*100, [Query Sleep Over Count].[CountOftracking number], [Query Top Gun Drill Count].[CountOftracking number], [Query Company Meeting Count].[CountOftracking number], [Query WorkParty,Fund,FirePrev,Perade,Funeral,Other Count].[CountOftracking number], [Query State Training, Official Class, OSHA - sum of points].[SumOfService Award Points for Certificate class], [Query Position Points].[1st Position Held Elected or Appointed], [Query Position Points].[Service Award Point Value];</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: phil12550</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/expression-builder/#comment-78074</link>
		<dc:creator>phil12550</dc:creator>
		<pubDate>Fri, 11 Jun 2010 03:14:05 +0000</pubDate>
		<guid isPermaLink="false">#comment-78074</guid>
		<description><![CDATA[well when i say im new i mean im self taught over the last year or so.]]></description>
		<content:encoded><![CDATA[<p>well when i say im new i mean im self taught over the last year or so.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: phil12550</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/expression-builder/#comment-78073</link>
		<dc:creator>phil12550</dc:creator>
		<pubDate>Fri, 11 Jun 2010 03:13:02 +0000</pubDate>
		<guid isPermaLink="false">#comment-78073</guid>
		<description><![CDATA[ok I&#039;m really new so i dont quite know what the SQL is if you can explane please.
thanks]]></description>
		<content:encoded><![CDATA[<p>ok I&#8217;m really new so i dont quite know what the SQL is if you can explane please.<br />
thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/expression-builder/#comment-78050</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Thu, 10 Jun 2010 16:08:10 +0000</pubDate>
		<guid isPermaLink="false">#comment-78050</guid>
		<description><![CDATA[The expression looks correct.

Can you post the SQL of your query ?]]></description>
		<content:encoded><![CDATA[<p>The expression looks correct.</p>
<p>Can you post the SQL of your query ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/10 queries in 0.039 seconds using memcached
Object Caching 379/385 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-22 13:57:32 -->