Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Comparing Fields Post Reply Post New Topic
Author Message
KevV
Senior Member
Senior Member


Joined: 19 May 2011
Online Status: Offline
Posts: 106
Quote KevV Replybullet Topic: Comparing Fields
    Posted: 06 Oct 2011 at 4:54am
I have a report where I display the username of the person runing the report. I currently have it set as a subreport with a formula pulling from a DB I manually enter the users info into and comparing them to their login to see if the data matches and if so it displays their name and everything works. I am wanting to switch the data source of the DB to pull from a table that already exist in another ODBC connection the problem is one source lists the users as "domain\ID" and the other displays it as just their "ID" so it never sees a match. My current formulas in the subreport are:
 
in the recorcd selection
 
{Table1.EUID} = WebUserName
 
 
a formula I put in the report header inside a text box
 
if not isnull({Table1.EUID}) then
    {Table1.Full_Name}
else
    Right(WebUserName, InStr(WebUserName, "\")+1);
 
I then insert that as a subreport into the page header of the main report.
 
Thanks
KevV
 
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.