I have a Count IIF statement that needs to be fixed.
This is in an unbound txt field in Report1.
Report1's Record source is qurReport1 (combined by 2 tbls...tblPosit ion Data and tblAction Log).
Field of the query are...
tblPosition Information_ID: ID (Auto #)
Position (dropdown from tblPosition Choices)
Program Element (dropdown from tblProgram Element Choices)
Reinvestigation (yes/no check box)
Action Type (dropdown from tblAction Choices)
Action Date( date/time field but only an input mask of mm/dd/yyyy)
This is what is in the Controle Soucer of the txt box:
=Sum(IIf([qurReport1]![Position Information].[Position]='Contractor',[tblAction Log].[Action Type]="Delayed",1,0) )
I started out w/ =Sum(IIf([tblAction Log].[Action Type]="Delayed",1,0) ) but need to add more criterias. (i.e. Position= Contractor)
I have also tried: =Count(IIf([tblAction Log].[Action Type]="Delayed",1,0) )... but jut get the total number of records no matter what I put for Action Type.
What is the best way to get a report that will count all Action Types between [start date] and [end date] that meet both criterias (Contractor and Action Type=Delayed)
This is in an unbound txt field in Report1.
Report1's Record source is qurReport1 (combined by 2 tbls...tblPosit ion Data and tblAction Log).
Field of the query are...
tblPosition Information_ID: ID (Auto #)
Position (dropdown from tblPosition Choices)
Program Element (dropdown from tblProgram Element Choices)
Reinvestigation (yes/no check box)
Action Type (dropdown from tblAction Choices)
Action Date( date/time field but only an input mask of mm/dd/yyyy)
This is what is in the Controle Soucer of the txt box:
=Sum(IIf([qurReport1]![Position Information].[Position]='Contractor',[tblAction Log].[Action Type]="Delayed",1,0) )
I started out w/ =Sum(IIf([tblAction Log].[Action Type]="Delayed",1,0) ) but need to add more criterias. (i.e. Position= Contractor)
I have also tried: =Count(IIf([tblAction Log].[Action Type]="Delayed",1,0) )... but jut get the total number of records no matter what I put for Action Type.
What is the best way to get a report that will count all Action Types between [start date] and [end date] that meet both criterias (Contractor and Action Type=Delayed)
Comment