PDA

View Full Version : Combine Date in One Field



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:

waqas
02-29-2012, 08:30 AM
Dear Experts,

have a look at my request please.:think:

waqas
03-29-2012, 09:18 AM
hi experts,

kindly look at my request.:banghead:

waqas
04-15-2012, 11:47 AM
no one replied. what happen experts.
kindly look at my request.

i have values in rows like first row is 3 second row is 8 third row is 19 and fourt row is 28 how can i combine in one cell by query:doh:

geekgirlau
05-02-2012, 05:18 PM
If I am understanding you correctly, I think that would be difficult to accomplish. Is there any reason why you need it displayed in this way?