problem with syntax of one simple statement

  • Thread starter Thread starter Ashley
  • Start date Start date
A

Ashley

can anyone help me fix teh syntax of this statement


sum (IFF(ISNULL (column_Date) and IFF(datediff('d', DueDate, getdate())
between 0 and 30, 1 , 0 ))
 
OOPS
that works
can you help me with this one now

sum ( IIF(ISNULL (OrderDate)) and IIF(datediff('d', #15/10/2003#,
#22/11/2003#) between 0 and 30), 1 , 0)

I get syntax error in this as well
 
Try

SUM (IFF(ISNULL (column_Date) and datediff('d', DueDate, Date()) between 0
and 30, 1 , 0 ))
 
I am not sure what you intend, but I will try (untested):

sum (IFF(ISNULL (column_Date) and (datediff('d', DueDate, getdate()) between
0 and 30), 1 , 0 ))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top