I cannot get a nested select statement to work as the "true" condition of an IIF statement, e.g.
Code:
SELECT [Certification List].ID,
[Certification List].Certification,
[Group List].Group,
[Group List].ID
FROM [Group List]
INNER JOIN ([Certification List]
INNER JOIN [Group Certifications] ON [Certification List].ID=[Group Certifications].Certification_Id)
ON [Group List].ID=[Group Certifications].Group_Id
WHERE ([Group List].ID=IIf(IsNull(forms.[Employee Certification Tracking].txtGroupCertsGroupId),(SELECT Min([Group List].ID) AS MinOfID FROM [Group List]),CInt(forms.[Employee Certification Tracking].txtGroupCertsGroupId)));
When I hard-code the nested select as "3", it works fine.
Does anyone know if this *should* work?
Thanks,
Mitch