> Hi,
>
[quoted text clipped - 30 lines]
>
> Is there anybody who can help me.
NewBee:
If you are only dealing with a few 'Result' options, and your data is
consistently entered, then you can add columns to your query like this
(Paste each of these lines into a blank column of your query grid):
Pain: IIF([Result] = "Pain",[Result Value])
Anxiety: IIF([Result] = "Anxiety",[Result Value])
Nausea: IIF([Result] = "Nausea",[Result Value])
HTH,
Jana
Jana - 29 Mar 2007 21:11 GMT
> > Hi,
>
[quoted text clipped - 45 lines]
>
> - Show quoted text -
This is, of course, assuming you're using Access. Since you specified
several other programs, I'm not sure if you intended to post to an
Access group. If you need the same functionality within an SQL
statement, it would be something like this:
SELECT Patient_Name, Account_No, Birthdate,
IF Result = 'Pain'
THEN Result_Value
ENDIF AS Pain,
IF Result = 'Anxiety'
THEN Result_Value
ENDIF AS Anxiety,
IF Result = 'Nausea'
THEN Result_Value
ENDIF AS Nausea
FROM YourTableName
Jana