kentwoodjean
Technical User
Have looked at multiple posts on this subject and tried several of the approaches and none seem to work so thought I would see if anyone can see the error. Below is my SQL:
TRANSFORM Last([IDW Monthly].Duration) AS [The Value]
SELECT [IDW Monthly].FirstName, [IDW Monthly].LastName, [IDW Monthly].Reason, Last([IDW Monthly].Duration) AS [Total Of Duration]
FROM [IDW Monthly]
WHERE ((([IDW Monthly].Team)=[Forms]![IWRTeamSelect]![IWRteam]))
GROUP BY [IDW Monthly].FirstName, [IDW Monthly].LastName, [IDW Monthly].Reason, [IDW Monthly].Team
ORDER BY [IDW Monthly].LastName
PIVOT [IDW Monthly].ToDate;
This is the criteria formula I used in my WHERE statement:
[Forms]![frmName]![combo box Name]
The error I get is "The MS jet database engine does not recognize '[Forms]![IWRTeamSelect]![IWRteam]'as a valid field name or expression.
What is wrong here?
TRANSFORM Last([IDW Monthly].Duration) AS [The Value]
SELECT [IDW Monthly].FirstName, [IDW Monthly].LastName, [IDW Monthly].Reason, Last([IDW Monthly].Duration) AS [Total Of Duration]
FROM [IDW Monthly]
WHERE ((([IDW Monthly].Team)=[Forms]![IWRTeamSelect]![IWRteam]))
GROUP BY [IDW Monthly].FirstName, [IDW Monthly].LastName, [IDW Monthly].Reason, [IDW Monthly].Team
ORDER BY [IDW Monthly].LastName
PIVOT [IDW Monthly].ToDate;
This is the criteria formula I used in my WHERE statement:
[Forms]![frmName]![combo box Name]
The error I get is "The MS jet database engine does not recognize '[Forms]![IWRTeamSelect]![IWRteam]'as a valid field name or expression.
What is wrong here?