Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sort date()
Message
De
02/06/2013 09:29:47
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01575417
Message ID:
01575430
Vues:
66
This message has been marked as a message which has helped to the initial question of the thread.
>how would I display all records before a specific date.
>I have a field called kdate which displays when a record was created
>I need to call all records before April 2013.
>
>thanks
>k

It really depends where you want to show it. Tore's reply is appropriate for an editing form. For a report, I would SELECT all data into a cursor, something like this:
local ldDate
ldDate = ThisForm.LblDate.Value && I am assuming the user will type the limiting date into a form
SELECT * FROM MyTable WHERE kDate < ldDate ORDER BY kDate INTO CURSOR Temp
REPORT FORM MyReport
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform