Information générale
Catégorie:
Codage, syntaxe et commandes
>>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement