Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Selectint Uncommon Records in two tables Post Reply Post New Topic
Author Message
chitemerere
Newbie
Newbie
Avatar

Joined: 04 Jul 2008
Location: Zimbabwe
Online Status: Offline
Posts: 29
Quote chitemerere Replybullet Topic: Selectint Uncommon Records in two tables
     Posted: 19 Jun 2012 at 10:07am
I have two tables tblMCAZApproved and tblWHOModelEML with common fields namely ActiveIngredient, Strength, DosageForm and ATC_Code.  The tables are linked via the ATC_Code.  How do I get to select records in tblWHOModelEML which are not in tblMCAZApproved in Crystal Reports for Visual Studio 2010?  Thanking you in advance
 
Chris Chitemerere
Chris
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 19 Jun 2012 at 11:04am
Link FROM tblWHOModelEML TO tblMCAZApproved and make the join a left outer join.  In the Select Expert, modify the formula and type in the following:
 
IsNull({tblMCAZApproved.ATC_Code})
 
This will get you all of the records from tblWHOModelEML that don't exist in tblMCAZapproved.
 
-Dell
IP IP Logged
chitemerere
Newbie
Newbie
Avatar

Joined: 04 Jul 2008
Location: Zimbabwe
Online Status: Offline
Posts: 29
Quote chitemerere Replybullet Posted: 22 Jun 2012 at 2:23am
Many thanks Dell, most appreciated
 
Chris
Chris
IP IP Logged
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