I have the following query that I wish to run on a table named activities with the fields startdatetime as date,penddate as date,username as string,done as boolean :
Select * from activities where done=false and username='peka' and (isnull(penddate)=true and datevalue(startdatetime)=<#05-May-01#) or (isnull(penddate)=false and penddate>#05-May-01# and penddate<=#05-May-01#) order by startdatetime
I get the error Syntax error (missing operand)
Can somebody please help me with the correct syntax
PK Odendaal
pko@mweb.co.za
Select * from activities where done=false and username='peka' and (isnull(penddate)=true and datevalue(startdatetime)=<#05-May-01#) or (isnull(penddate)=false and penddate>#05-May-01# and penddate<=#05-May-01#) order by startdatetime
I get the error Syntax error (missing operand)
Can somebody please help me with the correct syntax
PK Odendaal
pko@mweb.co.za