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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I show different results for the same field on one line?

Status
Not open for further replies.

Trogg

IS-IT--Management
Feb 13, 2003
80
US
Hello all,
I wil try to explain this as best as I can. I need to show the different results in a field (HCPCS) as 1 record instead of multiple records without duplications. Here is example of the query returning single records with the criteria based on the HCPCS Type field:

Procedure Desc Dept Rev HCPCS HCPCS Type
255052127 CATH 3600 636 A4645 CPT.MDCR
255052127 CATH 3600 636 A4645 CPT-4
255052127 CATH 3600 636 A9525 CPT-4
255052127 CATH 3600 636 Q9949 CPT.MDCR
255052127 CATH 3600 636 Q9949 CPT-4
255052127 CATH 3600 636 Q9967 CPT.MDCR
255052127 CATH 3600 636 Q9967 CPT-4

I separated the criteria and created 2 querys (one for each criteria) and created a query from those 2 and got the following:

Procedure Des Dept Rev HCPC(MDC)Type(MDC)HCPC(CPT)Type(CPT)
255052127 CATH 3600 636 Q9967 CPT.MDCR A4645 CPT-4
255052127 CATH 3600 636 Q9949 CPT.MDCR A4645 CPT-4
255052127 CATH 3600 636 A4645 CPT.MDCR A4645 CPT-4
255052127 CATH 3600 636 Q9967 CPT.MDCR A9525 CPT-4
255052127 CATH 3600 636 Q9949 CPT.MDCR A9525 CPT-4
255052127 CATH 3600 636 A4645 CPT.MDCR A9525 CPT-4
255052127 CATH 3600 636 Q9967 CPT.MDCR Q9949 CPT-4
255052127 CATH 3600 636 Q9949 CPT.MDCR Q9949 CPT-4
255052127 CATH 3600 636 A4645 CPT.MDCR Q9949 CPT-4
255052127 CATH 3600 636 Q9967 CPT.MDCR Q9967 CPT-4
255052127 CATH 3600 636 Q9949 CPT.MDCR Q9967 CPT-4
255052127 CATH 3600 636 A4645 CPT.MDCR Q9967 CPT-4

Obviously I'm getting duplicates that are not needed in the rows. Is there a better way to do this or a way to show the unnecessary field blank where there is no matching HCPCS code and type (such as A9525)? Thanks in advance for your assistance!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top