Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8635

Re: Record Select if both values

$
0
0

One way to do this would be to add a second copy of the table that contains the transcodes.  When you do this, Crystal will throw a warning that the table is already in the report and ask if you want to "alias" the table.  It will then add the table with "_1" on the end of the table name.  We are going to use this second copy of the table only for filtering data - it will NOT be used anywhere on the report itself.  If the original table is called "MyTable", the aliased one will the "MyTable_1".

 

1.  Create an inner join from MyTable to MyTable_1 using whatever field(s) identifies your data.  DO NOT use the transcode field for this!

 

2.  In the Select Expert, add something like the following:

 

MyTable.TransCode = 'CRV' and

MyTable_1.TransCode = 'BGE'

 

Also add any other filters that you need for your report, working from MyTable and NOT MyTable_1.

 

This should get you the data you're looking for.

 

-Dell


Viewing all articles
Browse latest Browse all 8635

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>