Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with set filter
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00022865
Message ID:
00022989
Vues:
35
>>I'm currently using VFP 3.0. When I design a Form which contain a ListBox and some CommandButton. In one of the CommandButton I use set filter as follows:
>>
>>set filter to = ThisForm.Combo1.Value
>>Report Form to printer
>>
>>All I want to do is to print out an individual's report by client's choice. However, it gives me all the records in the table. I try many different ways, I know the code is fine because it works on my other Form which print an individual report. It has to be something simple but I can't figure it out!! Any help with be appreciate!!
>
>Samuel: Instead of using the 'Set Filter to' approach, why not just set a FOR clause when you call the report:
>
>REPORT form to printer FOR = thisform.COmbo1.value
>
>Also, if you need to use the SET FILTER method, check to be sure that you don't have the report set to private datasession and that no table is loaded into the report dataenvironment to over-write the default table you are using in your form.
>
>HTH
>Barbara


Thank you Barbara. That's exactly what I did wrong, I set the datasession to private!!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform