473,395 Members | 1,689 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

What Does +IIF Do as Opposed to IIF?


What Does +IIF Do as Opposed to IIF?

James Igoe
http://code.comparative-advantage.com/

Mar 7 '07 #1
4 1763
Hi, James.
What Does +IIF Do as Opposed to IIF?
It will concatenate a value to the preceding string if the IIF( ) function
evaluates to true. If the IIF( ) function evaluates to false, then the
preceding string value remains as is. This method is usually used with
columns that may contain NULL's, such as the middle initial in a person's
name, so that extra spaces aren't seen in the resulting calculated value.
For example, the following shows an extra space for the names that don't
contain a middle initial, because the code used to concatenate the first
name, middle initial, and last name didn't use the IIF( ) function in its
concatenation:

Bill M. Later
Faye Kennit
Justin Case

HTH.
Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips and tutorials.
Blog: http://DataDevilDog.BlogSpot.com
http://www.Access.QBuilt.com/html/ex...ributors2.html for contact
info.
<ja********@gmail.comwrote in message
news:11**********************@v33g2000cwv.googlegr oups.com...
>
What Does +IIF Do as Opposed to IIF?

James Igoe
http://code.comparative-advantage.com/

Mar 7 '07 #2
Hi, James.

Please don't multipost. There's already a discussion going on in another
newsgroup, so anyone answering this question of yours in this newsgroup
won't see the others' replies, nor they ours. It's a needless duplication
of effort. You should cross-post if you want the same question to appear in
more than one newsgroup and have everyone be aware of all the other replies
regardless of which newsgroup they posted to. For more information on
newsgroup ettiquette, please see the following Web page:

http://www.mvps.org/access/netiquette.htm

HTH.
Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips and tutorials.
Blog: http://DataDevilDog.BlogSpot.com
http://www.Access.QBuilt.com/html/ex...ributors2.html for contact
info.
"'69 Camaro" <Fo**************************@Spameater.orgZERO_SP AMwrote in
message news:12*************@corp.supernews.com...
Hi, James.
>What Does +IIF Do as Opposed to IIF?

It will concatenate a value to the preceding string if the IIF( ) function
evaluates to true. If the IIF( ) function evaluates to false, then the
preceding string value remains as is. This method is usually used with
columns that may contain NULL's, such as the middle initial in a person's
name, so that extra spaces aren't seen in the resulting calculated value.
For example, the following shows an extra space for the names that don't
contain a middle initial, because the code used to concatenate the first
name, middle initial, and last name didn't use the IIF( ) function in its
concatenation:

Bill M. Later
Faye Kennit
Justin Case

HTH.
Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips and tutorials.
Blog: http://DataDevilDog.BlogSpot.com
http://www.Access.QBuilt.com/html/ex...ributors2.html for contact
info.
<ja********@gmail.comwrote in message
news:11**********************@v33g2000cwv.googlegr oups.com...
>>
What Does +IIF Do as Opposed to IIF?

James Igoe
http://code.comparative-advantage.com/


Mar 7 '07 #3
Bri
ja********@gmail.com wrote:
What Does +IIF Do as Opposed to IIF?

James Igoe
http://code.comparative-advantage.com/
There is no such thing as +IIf. I think what you are seeing is a
calculation that includes the IIf function in it. + is the Add operator.

Show us the whole equation if this is still not clear to you.

--
Bri
Mar 7 '07 #4
Bri wrote:

There is no such thing as +IIf. I think what you are seeing is a
calculation that includes the IIf function in it. + is the Add operator.
On my A2003, the intellisense automatically changes +IIF to IIF,
droppping the plus sign.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Be Careful, Big Bird!" - Ditto "TIM-MAY!!" - Me
Mar 7 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: SPAFA | last post by:
I am trying to convert this query to slq server 2000 and I cant figure out how to get rid of the IIF statements and make them case statements. If anyone could help I would greatly appreciate...
2
by: Bill | last post by:
Looking thru my books, searching the 'net - I think it's a VBScript feature. I don't know the exact operators, but it's something like: a?b:c Which translates to: If a = TRUE then return b...
2
by: Ray | last post by:
I use the expression below in a crosstab query and it works fine. However, else where I would like to sum the four levels but on ocassions some of the levels are null. Can anyone tell me how to use...
0
by: Richard Sherratt | last post by:
I'm printing address labels in a membership database. The rules are that if both MailingAddress1 and MailingAddress2 are Null, then use home address, otherwise use mailing address. If address line...
3
by: Patrick A | last post by:
All - I have a query in which I want to look at a form, and match against 1 value if a specific value has been selected from a list box, or another value if it has not. I'll have similar...
12
by: z. f. | last post by:
what's the difference between using the VB.NET function IIF or the c# operator ? VB.NET: a = iif ( b=c, d, e) C#: a= (b==c)?d:e TIA, z.
9
by: SQLScott | last post by:
I have always heard that using IIF statements is not recommended because they are slower than using If..Then statements, and not as "clean". I would appreciate others opinions and why/why not use...
6
by: Urs Eichmann | last post by:
While experimenting with the Feb CTP Edition of VB 2005, I came across "generic procedures". You can write: Public Class Foo Public Sub MySub(Of tDisp As IDisposable)(ByVal vMyParm As Integer)...
40
by: chhines | last post by:
I have a very long IIf statement. I think maybe I've reached the limit of how many choices you can have in the control source "Build" statement of a text box on a form. Really, the IIF statement is...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.