I get the error message "The Microsoft Jet database engine does not recognize '[forms]![ExpReport]![StartDate]' as a valid field name or expression."
The filter expression is
[Date] <= CDate([Forms]![ExpReport]![StartDate])
I found a thread with same problem, but it was posted on a "Forms" thread list.
Here's my SQL statement.
TRANSFORM Sum(tblExpense.Amnt) AS AmntOfSum
SELECT tblExpense.ExpCategId, tblTransaction.Date, Sum(tblExpense.Amnt) AS TotalSum
FROM (tblExpense INNER JOIN tblDepartment ON tblExpense.DepId = tblDepartment.DepId) INNER JOIN tblTransaction ON tblExpense.TransId = tblTransaction.TransId
GROUP BY tblExpense.ExpCategId, tblExpense.DepId, tblTransaction.Date
PIVOT tblDepartment.Name;
The filter expression is
[Date] <= CDate([Forms]![ExpReport]![StartDate])
I found a thread with same problem, but it was posted on a "Forms" thread list.
Here's my SQL statement.
TRANSFORM Sum(tblExpense.Amnt) AS AmntOfSum
SELECT tblExpense.ExpCategId, tblTransaction.Date, Sum(tblExpense.Amnt) AS TotalSum
FROM (tblExpense INNER JOIN tblDepartment ON tblExpense.DepId = tblDepartment.DepId) INNER JOIN tblTransaction ON tblExpense.TransId = tblTransaction.TransId
GROUP BY tblExpense.ExpCategId, tblExpense.DepId, tblTransaction.Date
PIVOT tblDepartment.Name;