Anyone have any tips for the correct syntax to use in the SQL command to join a table from an external server and database? This works in a straight sql query with brackets around the server name, but Crystal rejects that with an error. It also works to manually select the tables from each...
My report is based on an SQL command that sets variables based on a CASE statement based on a parameter select. It then uses the variables to populate part of the where clause to select records. Example:
Set @var =
CASE
WHEN {?param} = 1
THEN '[^SUB]%'
Select…..
From…
Where tbl.field LIKE...
This works on static text, but when using an actual field it just prints the field name on the report, bolded and in red. Any suggestions on fixing this in Crystal Reports 2008?
IF {field_code} = 'Y'
THEN
"<html> <font color = red> <b> {field_value} </b> </font> </html>"
ELSE
{field_value}...
I have a SQL Server 2008 query that runs by a date range for transactions. If I limit the date range to a period of 5 days or less, the query takes almost 2 full minutes to execute. However, if I set the date range for over 5 days, even for a period of several months, the results come back...
I have a report that typically pulls a small amount of data per instance since it is run per client ID. The main reports runs very quickly. When adding a needed subreport the report then takes a long time and appears to cycle through the entire database, rather than being narrowed by the...
I would greatly appreciate extra eyes to try to solve this issue. The EXISTS subquery is eliminating a row(s) of data that it should not. The first part of the query, prior to the EXISTS subquery returns the record in question, and a separate query on the table used in the EXISTS subquery...
My SQL query runs fine in SQL management studio, but when pasting it into an SQL command in Crystal it is rejected with " HIST ...label is not among the applicable tables". Any pointers appreciated. here is the SQL
Select chrg.field1, hist.field2, etc.
FROM billing_tx_charge_detail AS chrg...
I am modifying a report that uses a formula for a grouping and would appreciate any advise/explanation that anyone might offer. The formula is:
REPLACE(TRIM(REPLACE({tbl.prog_val},{tbl.prog_code},'')),'/','-')
I am new to the REPLACE function, but I believe that I follow its functionality in...
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.