I am having trouble populating some textboxes on a report that contains a chart. The textboxes are in the report header. When the report is opened the user is prompted to enter a StartDate and an EndDate. I have other reports that don't use charts that use these two values to populate two text boxes on the report so that the reader of the report can see what time period is covered. The chart seems to gooble up the values and all I get in the text boxes is '#Name?'. The same sql used in the chart report populates the fields correctly in a regular report. Here is the sql:
SELECT [RejClaim].[RejClaimReasonID], [Reason].[ReasonNum], Count([Reason].[ReasonNum]) AS CountOfReasonNum, [Reason].[Reason]
FROM Reason INNER JOIN RejClaim ON [Reason].[ID]=[RejClaim].[RejClaimReasonID]
WHERE [RejClaim].[RejClaimDate]>=StartDate And [RejClaim].[RejClaimDate]<=EndDate
GROUP BY [RejClaim].[RejClaimReasonID], [Reason].[ReasonNum], [Reason].[Reason];
Any hints or suggestions will be warmly appreciated.
SELECT [RejClaim].[RejClaimReasonID], [Reason].[ReasonNum], Count([Reason].[ReasonNum]) AS CountOfReasonNum, [Reason].[Reason]
FROM Reason INNER JOIN RejClaim ON [Reason].[ID]=[RejClaim].[RejClaimReasonID]
WHERE [RejClaim].[RejClaimDate]>=StartDate And [RejClaim].[RejClaimDate]<=EndDate
GROUP BY [RejClaim].[RejClaimReasonID], [Reason].[ReasonNum], [Reason].[Reason];
Any hints or suggestions will be warmly appreciated.