 




<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>IT Answers &#187; Access 2007 IIf function in a query</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/access-2007-iif-function-in-a-query/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers</link>
	<description></description>
	<lastBuildDate>Fri, 24 May 2013 22:16:19 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Access 2007 IIf function in a query</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/access-2007-iif-function-in-a-query/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/access-2007-iif-function-in-a-query/#comments</comments>
		<pubDate>Tue, 03 Jan 2012 06:14:16 +0000</pubDate>
		<dc:creator>Riaane</dc:creator>
				<category><![CDATA[Access 2007 IIf function in a query]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Please excuse my noobness but I am new to Access and rarely work with it. How do I replace the data in 1 field with the data of another field, if any data exists in the 2nd field? I suspect IIf would be the best way but I get &#8216;NewID: IIf([OffenderID]=&#8221;0000000000000&#8243;,[ForeignID],&#8221;0000000000000&#8243;)&#8217; is not a valid [...]]]></description>
				<content:encoded><![CDATA[<p>Please excuse my noobness but I am new to Access and rarely work with it. </p>
<p> How do I replace the data in 1 field with the data of another field, if any data exists in the 2nd field? I suspect IIf would be the best way but I get </p>
<p> &#8216;NewID: IIf([OffenderID]=&#8221;0000000000000&#8243;,[ForeignID],&#8221;0000000000000&#8243;)&#8217; is not a valid name &#8211; error in Access. </p>
<p> My query functoin is:</p>
<p> NewID: IIf([OffenderID]=&#8221;0000000000000&#8243;,[ForeignID],&#8221;0000000000000&#8243;)</p>
<p> If my [OffenderID] field = 0000000000000 and the [ForeignID] field is not Null, then the [OffenderID] must be populated with the value in the [ForeignID] field. If the [ForeignID] is Null, then the data in the [OffenderID] field must remain as is.</p>
<p> What am I missing please?</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/access-2007-iif-function-in-a-query/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</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/14 queries in 0.019 seconds using memcached
Object Caching 305/323 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-25 00:21:51 -->