Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Filter records with two different filters
Message
De
23/04/2007 14:39:47
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01219040
Message ID:
01219042
Vues:
7
>I am trying to filter the records, like this.
>
>SELECT bbb.*;
> FROM bbb;
>where code>=thisform.codefm.value .and. code<=thisform.codeto.value ;
>			    AND change1=1 AND bex=2;
>              ORDER BY descr;
>               INTO CURSOR bbbc
>SELECT Examtran.*;
> FROM examtran;
>where code>=thisform.codefm.value .and. code<=thisform.codeto.value ;
>			  .and. sec>=thisform.secfm.value .and. sec<=thisform.secto.value ;
>			  .and. scode>=thisform.shiftfm.value .and. scode<=thisform.shiftto.value ;
>			  .and. lcode>=thisform.levelfm.value .and. lcode<=thisform.levelto.value ;
>			  .and. year>=thisform.yearfm.value .and. year<=thisform.yearto.value;
>              .and. nmonth>=thisform.nmonthfm.value .and. nmonth<=thisform.nmonthto.value;
>              ORDER BY result;
>               INTO CURSOR bbb
>
>
>	REPORT FORM ALLTRIM(thisform.file.Value)preview
>	
>
>But in report i am not getting required result.should i changes some in report

The problem may be either 1. in the condition, or 2. in the report.

For 1., check the result, with a command like BROWSE NORMAL.

For 2. (if the cursor has the records you like), the problem is usually in the report DE. Open the report and eliminate all tables from the DataEnvironment.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform