Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
.SQLQuery for Crystal Reports doesnt work?!
Message
De
02/10/1998 17:50:51
Prasanna Kannan
Vista Information Solutions
San Diego, Californie, États-Unis
 
 
À
02/10/1998 07:15:27
Frixos Kimonis
The Clancy Group / Dowcra
Harefield, Royaume Uni
Information générale
Forum:
Visual Basic
Catégorie:
Contrôles ActiveX
Divers
Thread ID:
00143153
Message ID:
00143500
Vues:
17
Hi,

You can do this in two ways:

1. use SelectionFormula property of the crystal report to pass your criteria
2. Add Chr$(13) & Chr$(10) after your "Where" clause and before your "Order By" clause in SQLQuery

Eg:- Report1.SQLQuery = "select supplier.name,... from supplier where supplier.status = 'X'" & Chr$(13) & Chr$(10)
The selection list should be the same as the one defined in the report
to test it, paste the value of the SQLQuery in the Report SQL statement and see if it works

Prasanna
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform