Hi,
To remove the chance of a spelling mistake I simplified the parameter name in the query. It looks as such:
Code:
SELECT tblAgents.fldFirstName, tblAgents.fldLastName, tblAbsenteeism.fldDateReported, tblAbsenteeism.fldDidNotify, tblAbsenteeism.fldComments, tblAbsenteeism.fldSickNoteProvided
FROM (tblTeam RIGHT JOIN (tblAbsenteeism INNER JOIN tblAgents ON tblAbsenteeism.fldAgentID = tblAgents.fldAgentID) ON tblTeam.fldTeamID = tblAgents.fldTeamID) INNER JOIN tblSubCategory ON tblAbsenteeism.fldSubCategoryID = tblSubCategory.fldSubCategoryID
WHERE (((tblAbsenteeism.fldDateReported)>=[S] And (tblAbsenteeism.fldDateReported)<=[E]) AND ((tblAbsenteeism.fldAgentID)=[A]));
Here is the code in the form that calls the report:
Code:
stDocName = "qryAbsenteeismReportByAgent"
strWhere = "[A]=" & cmbAgents.Value & " and" & "[S] = #" & Date & "# and [E] = #" & Date & "#"
DoCmd.OpenReport stDocName, acPreview, , strWhere
I used the wizard to create the report. I will try and attach a screen shot of the properties
The parameters are still being ignored.
Cheers,
Aaron