waqas
02-28-2012, 11:12 AM
Dear Expert,
i have one query as below.
SELECT TblTimeSheetTest.IDNUM, Count(TblTimeSheetTest.TandA) AS CountOfTandA, IIf([tanda]="Absent",Format([sday],"dd"),0) AS Absnt
FROM TblTimeSheetTest
GROUP BY TblTimeSheetTest.IDNUM, TblTimeSheetTest.TandA, IIf([tanda]="Absent",Format([sday],"dd"),0)
HAVING (((TblTimeSheetTest.IDNUM)=401764) AND ((TblTimeSheetTest.TandA)="Absent"));
it is giving me result of date format in day in each row but i want to combine it into one field in same query with count of absent days
and in other in one field it should be like this 1,3,7 how it will be?:think:
i have one query as below.
SELECT TblTimeSheetTest.IDNUM, Count(TblTimeSheetTest.TandA) AS CountOfTandA, IIf([tanda]="Absent",Format([sday],"dd"),0) AS Absnt
FROM TblTimeSheetTest
GROUP BY TblTimeSheetTest.IDNUM, TblTimeSheetTest.TandA, IIf([tanda]="Absent",Format([sday],"dd"),0)
HAVING (((TblTimeSheetTest.IDNUM)=401764) AND ((TblTimeSheetTest.TandA)="Absent"));
it is giving me result of date format in day in each row but i want to combine it into one field in same query with count of absent days
and in other in one field it should be like this 1,3,7 how it will be?:think: