wellOriginally posted by mlewis
Not true!
Try this:
If a = "Hello" Then
MsgBox "hi"
Else
MsgBox "Bye"
End if
And then try:
Dim a
a = "goobl"
IIf a = "Hello", MsgBox("Hi"), MsgBox("Bye")
OOPS!
i'm not sure but i think that this will do it right
what i know about Iif (i just knew it 3 minutes ago) is that it returns the first value given if the condition is tru and the second if none so that code should do it rightVB Code:
Msgbox Iif(A= "Hello, "Hii" , "Bye")




Reply With Quote