Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Between 2 dates
Message
De
13/11/2023 20:24:41
 
 
À
13/11/2023 20:11:53
Luis Santos
Biglevel-Soluções Informáticas, Lda
Portugal
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01687236
Message ID:
01687237
Vues:
57
J'aime (1)
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform