Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / December 2005

Tip: Looking for answers? Try searching our database.

iif wont evaluate

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Access Idiot - 16 Dec 2005 18:22 GMT
Hi, can't understand why this wont work:
=IIf(Not [dtmDateClosed] Is Null,[dtmdateclosed],"On Order")
I should show the dtmdateclosed value if it isnt Null, and the Words "On
order" if not.  

Todd
SusanV - 16 Dec 2005 18:30 GMT
Try:
=IIf(Not IsNull([dtmDateClosed]),[dtmdateclosed],"On Order")
Signature

hth,
SusanV

> Hi, can't understand why this wont work:
> =IIf(Not [dtmDateClosed] Is Null,[dtmdateclosed],"On Order")
> I should show the dtmdateclosed value if it isnt Null, and the Words "On
> order" if not.
>
> Todd
Access Idiot - 16 Dec 2005 18:42 GMT
No Change.
It might be worth mentioning this is in a subform.  Although the subform is
based on a query, and the field dtmDateClosed is a field in that query.

Todd

> Try:
> =IIf(Not IsNull([dtmDateClosed]),[dtmdateclosed],"On Order")
[quoted text clipped - 4 lines]
> >
> > Todd
Marshall Barton - 16 Dec 2005 19:59 GMT
>Hi, can't understand why this wont work:
>=IIf(Not [dtmDateClosed] Is Null,[dtmdateclosed],"On Order")
>I should show the dtmdateclosed value if it isnt Null, and the Words "On
>order" if not.  

"won't work" isn't very descriptive of what is happening.
However, I'll make a guess the problem is caused by the text
box being named the same as the field.  If so, just change
the name to something else such as txtdtmDateClosed.

Signature

Marsh
MVP [MS Access]

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.