Excluding Records Conditionally

Meeting place for R&R customers and clients to share tips and ideas. Post your questions, messages or problems here.
Post Reply
John_Hardwick_(Guest)
Posts: 1
Joined: Tue Oct 10, 2017 12:44 pm

Excluding Records Conditionally

Post by John_Hardwick_(Guest) » Fri Feb 28, 2003 10:47 am

Within the IIF function, how do I specify to skip a record if it doesn^t fulfill the condition?____Let^s say I^m looking at records with a quantity field (Q). I only want to view those records with a quantity of less than 100.____I^ve tried writing (unsuccessfully) these ways:____IIF(Q<100,Q,blank) -doesn^t recognize "blank"__IIF(Q<100,Q) -no operator__IIF(Q<100,Q,) -no operator__IIF (Q<100,Q,0) -puts zero, doesn^t skip the record__IIF(Q<100,blanknum()) -puts a blank, doesn^t skip the record____And, while I^m asking, I^d like to know the syntax (if different) for skipping records based on character and date conditions.

kfleming
Posts: 5795
Joined: Tue Oct 10, 2017 12:44 pm

=> RE: Excluding Records Conditionally

Post by kfleming » Fri Feb 28, 2003 12:17 pm

Typically you would use a query to exclude certain records from a report.____Kathleen__R&R Support

apettinotti_(Guest)
Posts: 27
Joined: Tue Oct 10, 2017 12:44 pm

=> RE: Excluding Records Conditionally

Post by apettinotti_(Guest) » Mon Mar 03, 2003 2:01 pm

i didn^t test your exact scenario, but i exclude lines from printing all the time with calculated fields similar to what you^re asking. i suggest you try something like this:____iif(Q>100,.t.,.f.)____and then make the line(s) that you don^t want to print logical to print only on True.

Post Reply