Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formula Editor: How to say "If x field is empty, then include record?"

Status
Not open for further replies.

jselkes

Technical User
Jul 4, 2000
1
US
I need to filter records so that Crystal Reports will include records that meet 2 criteria:<br><br>{TWDATA.SalesmanCode} = &quot;RD&quot; and<br>{EVENT.EventCode}=&quot;RPT&quot; ---- which would typically be filled in with a date, IS EMPTY.&nbsp;&nbsp;<br><br>HOW DO YOU EXPRESS THE FILTERING CRITERION FOR THE FIELD BEING &quot;EMPTY?&quot;<br>AND HOW DO YOU EXPRESS THE FILTERING CRITERION FOR THE FIELD &quot;NOT EMPTY.&quot;<br><br>If you know how to state the correct formula (I believe in &quot;Select Expert&quot; &quot;Formula Editor&quot;) i'd appreciate your help.&nbsp;&nbsp;<br><br>Thank you.&nbsp;&nbsp;&nbsp;Josh Elkes<br><br><br>
 
To include only records with an empty field use<br>isnull({table.field}) in your selection formula. To get the opposite, use not isnull({table.field}).
 
Remember there is a difference between... <br><br>IsNull{MyTable.MyField} and<br>{MyTable.MyField} = &quot; &quot;<br><br>You may know this already - apologies if you do. <p>Cody ford<br><a href=mailto:codyford@yahoo.com>codyford@yahoo.com</a><br><a href= > </a><br>VB, VBS, Seagate Info/Crystal Reports<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top