Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create index to sort Names ascending & Dates descending
Message
De
18/07/2006 19:56:29
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01137344
Message ID:
01137448
Vues:
21
>I have a temporary table with user names and dates. User names are repeated with many dates for each user name. I need to print this table sorted by user name (ascending) with dates for each user (descending). I normally create another field and subtract the date fields from today's date to get a number that when sorted (ascending) will print the dates in descending order. Is there a simpler way to mix ascending and descending together?

For reporting purposes, forget about the index. SELECT is much easier and more flexible.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform