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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using date in IF statement for the Record Selection 1

Status
Not open for further replies.

willz99ta

IS-IT--Management
Sep 15, 2004
132
US
Thanks for your help,

I am using this record selection query:

if {PURCHORDER.PO_DATE} >= date(2010,04,01) then ({PURCHORDER.PO_USER_FLD_1} <> "C")

The problem is that it only returns the data that matches this: {PURCHORDER.PO_DATE} >= date(2010,04,01)


Any ideas?

Thanks,
Will
 
(
(
{PURCHORDER.PO_DATE} >= date(2010,04,01) and
{PURCHORDER.PO_USER_FLD_1} <> "C"
) or
{PURCHORDER.PO_DATE} < date(2010,04,01)
)

...if the intent is to limit to "c" records if later than 4/1, but not limit earlier records.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top