prabha_friend
Prabhakaran Karuppaih
- Local time
- Today, 08:45
- Joined
- Mar 22, 2009
- Messages
- 1,034
Set attnset = CurrentDb.OpenRecordset("TRANSFORM Count(Leave_Absents.Employee) AS CountOfEmployee SELECT Leave_Absents.Code FROM Leave_Absents WHERE (((Leave_Absents.Day) Is Not Null)) GROUP BY Leave_Absents.Code PIVOT MonthName(Month([Day])) In (" & monthchain() & ");")
Set strengthset = CurrentDb.OpenRecordset("TRANSFORM Last(Tbl_Teamstrength_Attendance.Strength) AS LastOfStrength SELECT 'Strength' AS Code FROM Tbl_Teamstrength_Attendance GROUP BY 'Strength' PIVOT MonthName(Month([Dt])) In (" & monthchain() & ");")
After that I need to make a Union Query of the Two Results. Is to possible to query from a Recordset directly?
Set strengthset = CurrentDb.OpenRecordset("TRANSFORM Last(Tbl_Teamstrength_Attendance.Strength) AS LastOfStrength SELECT 'Strength' AS Code FROM Tbl_Teamstrength_Attendance GROUP BY 'Strength' PIVOT MonthName(Month([Dt])) In (" & monthchain() & ");")
After that I need to make a Union Query of the Two Results. Is to possible to query from a Recordset directly?