I have a parameter displaying yyyymmdd 00:00:00 I need to turn into a string because it can be null and I want to substitute a message for that case. I have not had any luck with cstr, totext, tonum or any of the standard conversions. I think I remember this using left right and mid to swap...
I figured it out. It turned out that the text field in the DB became a memo field in crystal. I unfortunately had the field in the group section and that doesn't work. Once I dropped it into the details it functioned as expected. Thanks for your help.
cr XI, SQL 2008. This is a vendor database so I can't change how they store things.
When I display this field in crystal it's blank. I set it to can grow and changed the paragraph text interpretation options to HTML Text.
The data looks like
<HTML>
<HEAD>
<style...
Crystal Reports 11, SQL server 2008
I have some data stored in a delimited field but when I try to display it the delimiter goes away and it all runs together.
When I paste it into Notepad++ I see it as
data part oneRSData part twoRSData part threeRS
However when I view it as text or try...
Sorry in the SP they are defined that way.
In the main report it's just a field. {employee_id}
in the Subreport it's a parameter {?@employee_id}
I need to link [employee_id} in the main to {?@employee_id} in the sub. But when I choose {employee_ID} in the main it's not an option to choose...
I need to pass a value from the main report to a subreport's parameter. The main report pulls in all employees and the sub report is set up to return specific data to that employee using a parameter of their employee number.
The main report field is employee_id and the subreport parameter is...
Thanks for the reply:
The sub has a bunch of parameters that usually come from an application and is run on a case by case ad hoc basis by an end user. The original report (now sub) is only set up for a single person.
I wrote a quick main report that pulls all the possible people and then put...
How can I pass a value from my main report into a parameter in a sub report.
The subreport is a report that I want to run for multiple instances so I created a main that pulls the instances so it can be run without the end user inputting each value.
Thanks for your help. The final working solution is:
IF ISNULL({Staff_V1;1.VisitEndDateTime}) or totext({Staff_V1;1.VisitEndDateTime}) ="" then
(date({Staff_V1;1.VisitStartDateTime})& "/ N/A") else
totext(date({Staff_V1;1.VisitStartDateTime}),"MM/dd/yyyy") &" / "&...
@turkbear That explains the blanks
@IanWaterman That's what I've been doing but I was wondering if there was a way to do that in a formula like:
IF ISNULL({Staff_V1;1.EndDateTime}) or {Staff_V1;1.EndDateTime} ="" then "n/a" else {Staff_V1;1.EndDateTime};
date({Staff_V1;1.StartDateTime})&" /...
CRYSTAL XI
I want to concatenate datetime fields with a slash between them and change the field from datetime to date.
I tried {Staff_V1;1.StartDateTime}&" / "&{Staff_V1;1.EndDateTime}and the formula field is blank in my query. Changing that to add totext({Staff_V1;1.StartDateTime}...
I am pivoting a temp table and the table is fine with no nulls or additional values but when I pivot the data gets split in half and I end up with nulls where there should be values. Instead of 1 row with 20 columns I get two rows with 20 columns with half the values in the top row and half in...
Thanks LyleU. This probably explains why I never saw this happen before. I'm going to star this because it's likely to come up again. I appreciate the feedback.
This would work. Just create text tags for the XML and drop in the fields... I gotta be honest this is the best idea I've heard. I'm gonna roll with it. Thanks for posting it.
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.