gsk1203,
to display data for each employee, you'll have to modify the
getCalendarData() function as it calls for the entire recordset in the attendance table, you will need to add a filter when opening the recordset and pass along the employee's id
example:
CODE
Function getCalendarData(employeeID As Long) As Boolean
Dim rs As DAO.Recordset
Dim strDate As String
Dim strCode As String
Dim strSQL As String
Dim i As Integer
'// setup sql to retrieve one employee's attendance
strSQL = "SELECT * From t_employeeAttendance WHERE employeeID = " & employeeID
Set rs = CurrentDb.OpenRecordset(strSQL, dbOpenSnapshot)
Set colCalendarDates = New Collection
With rs
If (Not .BOF) Or (Not .EOF) Then
.MoveLast
.MoveFirst
End If
If .RecordCount > 0 Then
For i = 1 To .RecordCount
strDate = .Fields("attendanceDate")
strCode = .Fields("statusCode")
colCalendarDates.Add strCode, strDate
.MoveNext
Next i
End If
.Close
End With
'// return date collection
Set rs = Nothing
End Function
now you would have to supply the employee'd id each time you run the calendar report, perhaps on report's Detial.OnFormat.
jmcwk,
not sure why you're having the download problems, i just downloaded it with no problems