M
MeSteve
I am trying to do an Iif expression based on the value in my table. If the
ID = 6 then return the date in the record having the ID 6, else return the
date in the record having an ID of 7. All query records are returning the
date where ID = 6 is first found instead of the date associated with that
record. I don't realy know what I am doing when it comes to an Iif
expression within a query.
myECD:
IIf([milestoneID]=6<>"",DLookUp("[MileDate]","[tblProjectMilestones]",[milestoneID]=7),DLookUp("[miledate]","[tblProjectMilestones]",[milestoneID]=6))
ID = 6 then return the date in the record having the ID 6, else return the
date in the record having an ID of 7. All query records are returning the
date where ID = 6 is first found instead of the date associated with that
record. I don't realy know what I am doing when it comes to an Iif
expression within a query.
myECD:
IIf([milestoneID]=6<>"",DLookUp("[MileDate]","[tblProjectMilestones]",[milestoneID]=7),DLookUp("[miledate]","[tblProjectMilestones]",[milestoneID]=6))