I have used Excel and MS Access for many years but only now have I encountered this problem: I have a SELECT statement, where one of the fields is an alias that uses a User-Defined function to compute the ceiling of a field-value. Problem is that because it is an expression, the ADO connection will not allow Excel to access the object in Access. When I write the ADO connection as a sub module, having the SELECT statement execute via the connection string, function is NOT identifiable in the VBA Project - and rightfully so, it is in MS Access. Here is the SELECT statement:
SELECT Left([Description],50) AS Comment,
Ceiling(Avg([Task_Total])) AS Task,
TblTaskTotal.Dtd
FROM TblTaskTotal
GROUP BY Left([Description],50), TblTaskTotal.Dtd HAVING (((TblTaskTotal.Dtd)=Date()))
ORDER BY Left([Description],50);
In Excel VBA Project, the resulted in run-time error ("Undefined function 'Ceiling' in expression". Any suggestions as to how to get around this Gremlin?