Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple types in one field

Status
Not open for further replies.

mmm76

Technical User
May 15, 2008
10
US
Hi,
We have 4 different qualifiers in one field in a table. For example SSNs, HSN, MDR, and MED reference numbers all in one table. I am trying to pull a list of people and their corresponding SSNs but I want to include all people even people with out SSN's. The report is pulling only people with SSNs. I have a left outer join on the table and I really don't want a subreport because I have to export this to access. If I use a formula something like
if CID_ID_Type = "SSN" then CID_ID else "" it still returns a blank line and causes records to duplicate. I already have one grouping that I need to keep based on unique fields and I can not add any additional grouping due to how the data has be reported. Any suggestions would be greatly appreciated. Thanks!
 
You should use a conditional formula as you have shown, and then sort in descending order on this formula. Then in the section expert, format the detail section to suppress using this formula:

{table.person} = previous({table.person})

The SSN will then show, if it exists, and if it doesn't, there will be one record with "".

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top