Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp50 - I need to CREATE a subset VIEW of an existing V
Message
De
25/07/1997 10:56:27
Sonny Chouinard
CHCA Computer Systems Inc.
Lachenaie, Québec, Canada
 
 
À
25/07/1997 10:47:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00041618
Message ID:
00041632
Vues:
35
>>>I need to CREATE a subset VIEW of an existing VIEW.
>>>Example…, I need to extract records from a VEIW TABLE for different departments and let those users only access their department.
>>>Any ideas?
>>
>>Hi Robert, Use a parametrized view With a Filer ----> cDepartment is like ?plDepartment
>
>Hi Sonny and thanks for answering... Could you give me a little
>sample code? I have never used parametrized views.
>thanks again..rob

You could do something like this :

CREATE SQL VIEW myView AS
SELECT * FROM myTable WHERE myTable.cDepartment LIKE ?THISFORM.plDepartment

THISFORM.plDepartment is a property that you could set in your form or you could use a public variable.

You could do this in the view designer...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform