G
Guest
I have two different SELECT AS statements, back to back. my trimmed down
code looks like this, and where I put a comment beginning and ending with
***, this is not actually in my code
SELECT IIf([Age of employee] Between 0 And 29,"<30",IIf([Age of employee]
Between 30 And 34,"30-34",0)) AS [ageRange],
***This next IIf() begins a totally new statement, but it will not compile
if I place SELECT before the IIf***
IIf(
code looks like this, and where I put a comment beginning and ending with
***, this is not actually in my code
SELECT IIf([Age of employee] Between 0 And 29,"<30",IIf([Age of employee]
Between 30 And 34,"30-34",0)) AS [ageRange],
***This next IIf() begins a totally new statement, but it will not compile
if I place SELECT before the IIf***
IIf(
="Life", "w/o", IIf(
="AD&D", "w/",0)) AS [benefitType]
So this is going to confuse me forever... shouldn't I have another SELECT
there? because I'm dealing with [benefitType] and not [ageRange]
So this is going to confuse me forever... shouldn't I have another SELECT
there? because I'm dealing with [benefitType] and not [ageRange]