jessabridge
Registered User.
- Local time
- Today, 17:45
- Joined
- Jun 29, 2011
- Messages
- 35
I have a simple query. I made a IIf statement that includes a Dlookup. Before I added the Dlookup, all was fine. I added it in & it works! Wonderful! But when I hit Run, I get the attached error message. I click OK and it goes away. It even gives me the correct data. I have Access 2010 since last week, from 2003, so i am adjusting. When I run a query that is linked to MMaxValue, I get that Unknown popup 3 times, same when I try to open the report. Numbers are correct but the Popup.
Here is the SQL:
SELECT [t Current Year PP Exception Hours].FY, Max([t Current Year PP Exception Hours].FYPP) AS MaxOfFYPP, Max([t Current Year PP Exception Hours].[PAY PER]) AS MMax, Nz(IIf([fy]=2015,[mmax]+26,DLookUp(" [SMax] ","MMaxValue","[FY] + 1 "))) AS SMax
FROM [t Current Year PP Exception Hours]
GROUP BY [t Current Year PP Exception Hours].FY
ORDER BY Max([t Current Year PP Exception Hours].[PAY PER]);
Any Ideas,
Jessa
Here is the SQL:
SELECT [t Current Year PP Exception Hours].FY, Max([t Current Year PP Exception Hours].FYPP) AS MaxOfFYPP, Max([t Current Year PP Exception Hours].[PAY PER]) AS MMax, Nz(IIf([fy]=2015,[mmax]+26,DLookUp(" [SMax] ","MMaxValue","[FY] + 1 "))) AS SMax
FROM [t Current Year PP Exception Hours]
GROUP BY [t Current Year PP Exception Hours].FY
ORDER BY Max([t Current Year PP Exception Hours].[PAY PER]);
Any Ideas,
Jessa