Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
.SQLQuery for Crystal Reports doesnt work?!
Message
From
02/10/1998 17:50:51
 
 
To
02/10/1998 07:15:27
Frixos Kimonis
The Clancy Group / Dowcra
Harefield, United Kingdom
General information
Forum:
Visual Basic
Category:
ActiveX controls
Miscellaneous
Thread ID:
00143153
Message ID:
00143500
Views:
16
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
Previous
Reply
Map
View

Click here to load this message in the networking platform