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 11:37:00
 
 
À
25/07/1997 10:56:27
Sonny Chouinard
CHCA Computer Systems Inc.
Lachenaie, Québec, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00041618
Message ID:
00041639
Vues:
34
>>>>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...

Thanks Sonny... once again, you have helped me out... It works
and thanks again...Rob
Robert Keith
Independent Developer
San Antonio, Texas
E-mail address:
rebelrob1@yahoo.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform