General information
Category:
Coding, syntax & commands
Hi Luis.
>I have the following problem, because the command don´t return records between my 2 dates:
>lcSQLCmd = [SELECT * FROM DOCUMENTOS WHERE ( FECHA BETWEEN DATE(Year(FECHA), Month(FECHA), Day(FECHA)) and DATE(Year(date()), Month(date()), Day(date())) ) ;
> and tipodocu = 'F' And !DELETED() ORDER BY ID_ISO, FECHA, numdocu ASC ]
The problem here is that you are asking for all records where the FECHA date is between the FECHA date and today, which will always be true.
What date range are yop trying to use?
Ian Simcock.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only