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

Recoding tables! 1

Status
Not open for further replies.

Gaylord

Technical User
Sep 26, 2002
49
DE
Hi,

I was wondering if anyone know how to do this....

I run a query to generate a new table, where if there is a null value, then a value of '0' is output is a processed data column using this command in the query designer

First_Ob_Output: IIf(IsNull([First_Ob_Pulse]),"0",[First_Ob_Pulse])

But, what I also then need to do, is if the value is not null, output a value of 1.

Basically this is for a clinical audit, where the value isn't important, though having performed the test is... so I only need a positive/negative result!

Hope someone can help me!

Best regards

Jamie
 
I am so stupid sometimes

First_Ob_Output: IIf(IsNull([First_Ob_Pulse]),"0",[First_Ob_Pulse])

change this to..

First_Ob_Output: IIf(IsNull([First_Ob_Pulse]),"0","1")

Oh well, learn something new each and every day!

Cheers

Jamie
 
Have a star for figuring it out yourself!! We all have those days!

leslie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top