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!

Use CASE in an MDB Query

Status
Not open for further replies.

Hfnet

IS-IT--Management
Dec 31, 2003
369
GB
I currently have a CASE procedure in a project, and I want to use it in an MDB:

SELECT dbo.MainTable.*
CASE dbo.MainTable.PausedJob WHEN 0 THEN 6 ELSE 5 END As PendingNo
FROM dbo.MainTable;

How can I achieve this in an MDB with linked SQL Server Tables?

Thanks
 
SELECT dbo.MainTable.*, IIf([PausedJob]=0,6,5) AS PendingNo
FROM dbo.MainTable;


Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244. Basics at
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top