DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   MS Access and FileMaker Pro (http://www.daniweb.com/forums/forum128.html)
-   -   Expression Builder : MS ACCESS FORMS (http://www.daniweb.com/forums/thread159584.html)

dinilkarun Nov 26th, 2008 10:55 am
Expression Builder : MS ACCESS FORMS
 
Hi,

Please help me with Expression builder for my FOrm.
Weight_likely - back end DB Column
I want an expression, where if Weight_likely is blank then in form 0 should be populated or if Weight_likely has a value then the value itself should be populated.

=IIf([Weight_likely]="",0,[Weight_likely])

Please help me on this.

Regards,
Jagadeep Reddy

timothybard Nov 26th, 2008 12:58 pm
Re: Expression Builder : MS ACCESS FORMS
 
You can use the NZ function:

nz([Weight_Likely],0)

The nz function will function will return [Weight_Likely] if it is not null. If it is null, it will return 0.

dinilkarun Nov 27th, 2008 5:59 am
Re: Expression Builder : MS ACCESS FORMS
 
Its not working.Please help me with Expression builder

timothybard Nov 27th, 2008 11:14 am
Re: Expression Builder : MS ACCESS FORMS
 
Just type the following in the expression builder:

=NZ([Weight_likely],"Hello")

HI2Japan Dec 1st, 2008 10:02 pm
Re: Expression Builder : MS ACCESS FORMS
 
If you can't get timothy's suggestion to work, type null rather then "" in your condition.


All times are GMT -4. The time now is 1:18 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC