Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Too many views
Message
 
 
À
01/05/2001 11:38:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00501886
Message ID:
00502036
Vues:
17
>Thanks for that.
>
>That was the sort of thing I was going to put in. I have noticed that when opening Views it can take a while, but when you just requery them, it's pretty quick.
>
>I do, however, have one more snag, and that is the fact that the buttons used to open my Container screens, highlight in BLUE if there is data behind them - I can't think of a way of getting around that without running more Select statements!!
>
>Kev

Create a parameterized SQL view based on something like the following.
Create SQL View lv_Kounts as ;
   select ;
      sum(iif(ID = ?cValue1, 1, 0)) Kount1, ;
      sum(iif(ID = ?cValue2, 1, 0)) Kount2, ;
      sum(iif(ID = ?cValue3, 1, 0)) Kount3 ;
      from MyTable
Your buttons would be BLUE/Enabled if the correcponding KountX field is greater than 0.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform