Hi. I am having trouble getting a formula to work via ASP to crystal. I am passing a parameter, but when the parameter is passed it scans the whole SQLServer table verus a direct hit on the keyed field. Any suggestions???
Not all CR formulas can be converted to SQL. If not, the selection is performed on the client.
Post your formula, and clarify if this is the "SELECTION" formula or a formula field. Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
Passing just a single field name to the selection formula won't do anything. Is that all you are passing? Could you post the line of code that passes the formula? Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
sCriteria = ""
For i = 0 To gResults.ListCount - 1
If gResults.Selected(i) Then
sCriteria = sCriteria & "({@fSSN}) = '" & Left(gResults.List(i), 10) & "' or "
End If
Next
You have 2 formulas here, one is @ssn which sits in the report, the other is the selection formula that gets passed to the report. Post the selection formula, or the contents of the SCriteria variable at the time it is passed to the report.
If it has OR in it, then it will always have to do a serial read. Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
" {T_Emp_Basic_Info.SSNO} = '0123456789' " Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.