mdnuts
Registered User.
- Local time
- Today, 12:06
- Joined
- May 28, 2014
- Messages
- 131
Access 2007 Sub-Report "rptSubEmployeeProject" inside report "rptProgressReportDay".
I need to dynamically change the table in the sub-report's record source. I tried (line wrapped in code tags below for reading purposes)
and I get the error of invalid bracketing of name and it refers to the [TempVars]![Temp part. Makes me believe that I cannot use TempVars in a Reports RecordSource, is that accurate? If So that leaves me trying to set a sub-reports recordsource via vba right?
I need to dynamically change the table in the sub-report's record source. I tried (line wrapped in code tags below for reading purposes)
Code:
SELECT tblProjectHistory_fldProjectID,
FirstOfHistory, [History Date], [Time Spent],
Employee, fldAssigned, TheFieldPriority,
fldTitle, employeeID, fldTimeSpent,
fldStatus, fldHistoryID, fldOrder
FROM " & [TempVars]![TempEmpTempTable] & "
ORDER BY fldOrder;