A
AaronWestcott via AccessMonster.com
I hope someone with better eyes and knowledge can help.
I have a query (qry_all_transit_change) that produces and error. See code
below.
SELECT qry_all_transit.DATE, qry_all_transit.MODE, qry_all_transit.
All_Transit, DLookUp("All_Transit","qry_all_transit","[DATE]=#" & DateSerial
(Year([DATE]),Month([Date])-1,1) & "# AND [MODE]=" & [MODE]) AS
All_Transit_Change
FROM qry_all_transit;
qry_all_transit has the follwoign structure:
SELECT tbl_NTD_ALL_YEARS_DATE_FIX.DATE, tbl_NTD_ALL_YEARS_DATE_FIX.MODE, Sum
(tbl_NTD_ALL_YEARS_DATE_FIX.VALUE) AS All_Transit
FROM tbl_NTD_ALL_YEARS_DATE_FIX
GROUP BY tbl_NTD_ALL_YEARS_DATE_FIX.DATE, tbl_NTD_ALL_YEARS_DATE_FIX.MODE;
The All_Transit_Change field in the qry_all_transit_change query displays an
error when the query is run. The error message is "Object does not contain
the automation object...". The dlookup works without the mode criteria added
in.
Any help with this would be greatly appreciated.
I have a query (qry_all_transit_change) that produces and error. See code
below.
SELECT qry_all_transit.DATE, qry_all_transit.MODE, qry_all_transit.
All_Transit, DLookUp("All_Transit","qry_all_transit","[DATE]=#" & DateSerial
(Year([DATE]),Month([Date])-1,1) & "# AND [MODE]=" & [MODE]) AS
All_Transit_Change
FROM qry_all_transit;
qry_all_transit has the follwoign structure:
SELECT tbl_NTD_ALL_YEARS_DATE_FIX.DATE, tbl_NTD_ALL_YEARS_DATE_FIX.MODE, Sum
(tbl_NTD_ALL_YEARS_DATE_FIX.VALUE) AS All_Transit
FROM tbl_NTD_ALL_YEARS_DATE_FIX
GROUP BY tbl_NTD_ALL_YEARS_DATE_FIX.DATE, tbl_NTD_ALL_YEARS_DATE_FIX.MODE;
The All_Transit_Change field in the qry_all_transit_change query displays an
error when the query is run. The error message is "Object does not contain
the automation object...". The dlookup works without the mode criteria added
in.
Any help with this would be greatly appreciated.