Hi, the following is a small part of a much larger query in Access.
I'm trying to convert the query to an SQL view, but the syntax has me stumped!
There are 2 problems.
1) [Completed]=False AS OJ (should return 0 if false or 1 if true)
2) IIf([BRef]='B001',0,1) AS BR (should return 0 if field BRef='B001' or 1 if it is not)
I know that the syntax will be different but I can't work out what it should be.
Here is the query I need.
SELECT [Completed]=False AS OJ, IIf([BRef]='B001',0,1) AS BR
FROM [HDM]
Any help would be greatly appreciated!
Thanks Richard
I'm trying to convert the query to an SQL view, but the syntax has me stumped!
There are 2 problems.
1) [Completed]=False AS OJ (should return 0 if false or 1 if true)
2) IIf([BRef]='B001',0,1) AS BR (should return 0 if field BRef='B001' or 1 if it is not)
I know that the syntax will be different but I can't work out what it should be.
Here is the query I need.
SELECT [Completed]=False AS OJ, IIf([BRef]='B001',0,1) AS BR
FROM [HDM]
Any help would be greatly appreciated!
Thanks Richard