skwilliams
Registered User.
- Local time
- Today, 00:01
- Joined
- Jan 18, 2002
- Messages
- 516
I have a crosstab query with a date criteria. Here's the SQL statement:
TRANSFORM Nz(Sum([tblAccum].[COUNT]))+0 AS SumOfCOUNT
SELECT tblAccum.Type, tblAccum.RecDate, Sum(tblAccum.COUNT) AS TOTAL
FROM tblAccum
WHERE ((tblAccum.RecDate) = [Forms]![frmMain]![Text17])
GROUP BY tblAccum.Type, tblAccum.RecDate
PIVOT tblAccum.ProdCode;
I'm receiving this error message.
The Microsoft Jet database engine does not recognize '[Forms]![frmMain]!Text17' as a valid field name or expression.
I've verified the correct form and unbound textbox name.
An idea where my SQL is wrong?
TRANSFORM Nz(Sum([tblAccum].[COUNT]))+0 AS SumOfCOUNT
SELECT tblAccum.Type, tblAccum.RecDate, Sum(tblAccum.COUNT) AS TOTAL
FROM tblAccum
WHERE ((tblAccum.RecDate) = [Forms]![frmMain]![Text17])
GROUP BY tblAccum.Type, tblAccum.RecDate
PIVOT tblAccum.ProdCode;
I'm receiving this error message.
The Microsoft Jet database engine does not recognize '[Forms]![frmMain]!Text17' as a valid field name or expression.
I've verified the correct form and unbound textbox name.
An idea where my SQL is wrong?