S
scubadiver
I have a linked table from an SQL warehouse.
first query
SELECT dbo_Account.OriginalFeeTable, Format([TakeOnDate],"mmm") & "-" &
Format([takeondate],"yy") AS TODate, Val([InitialDebt]/100) AS debt
FROM dbo_Account
WHERE (((dbo_Account.OriginalFeeTable)<>"00") AND
((Val([InitialDebt]/100))<>"") AND ((dbo_Account.TakeOnDate) Between
DateAdd("m",-12,Date()) And Date()));
second query doesn't work:
SELECT Qry_Account.OriginalFeeTable, Qry_Account.TODate,
Count(Qry_Account.TODate) AS CountOfTODate
FROM Qry_Account
GROUP BY Qry_Account.OriginalFeeTable, Qry_Account.TODate;
What is the problem and solution?
thanks
first query
SELECT dbo_Account.OriginalFeeTable, Format([TakeOnDate],"mmm") & "-" &
Format([takeondate],"yy") AS TODate, Val([InitialDebt]/100) AS debt
FROM dbo_Account
WHERE (((dbo_Account.OriginalFeeTable)<>"00") AND
((Val([InitialDebt]/100))<>"") AND ((dbo_Account.TakeOnDate) Between
DateAdd("m",-12,Date()) And Date()));
second query doesn't work:
SELECT Qry_Account.OriginalFeeTable, Qry_Account.TODate,
Count(Qry_Account.TODate) AS CountOfTODate
FROM Qry_Account
GROUP BY Qry_Account.OriginalFeeTable, Qry_Account.TODate;
What is the problem and solution?
thanks