Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unique Cursor
Message
 
 
À
28/10/2001 22:41:49
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00574322
Message ID:
00574324
Vues:
19
>I have asked this before but still need help. I have a table with records assigned to several different people and some of the records are not assigned. I want to show in a grid based on the log in a set of records that belong to the individual loged on plus all unassigned records. Note I only want to exclude records assigned to another user. Evereyone would see the unassigned. I know it will take two select statements but how can I set them up?
lcAssignedto = "Steven Dyke "
SELECT *, ;
     IIF( EMPTY(Assignedto), "2", "1") AS Sortorder ;
   FROM mytable ;
   WHERE Assignedto = lcAssignedto OR Assignedto = SPACE( LEN(Assignedto) ) ;
   ORDER BY Sortorder ;
   INTO CURSOR mycursor
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform