I am converting my program from a ms access backend to a ms sql server backedn (msde) and a buch of queries are not working. This is the query:
SELECT FIRST(DelLoc.Loc) AS Loc, FIRST(DelLoc.Des) AS Des, Count(*) AS TotItems FROM (AddItems INNER JOIN SM ON AddItems.Man = SM.ID) INNER JOIN DelLoc ON AddItems.AddItemsDel = DelLoc.Loc WHERE AddItems.Printed=0 AND (SM.DateIn >= '05/28/2004' AND SM.DateIn <= '05/28/2004') GROUP BY DelLoc.Loc
I get:
[Microsoft][ODBC SQL Server Driver][SQL Server]'FIRST' is not a recognized function name.
If there a equilivent function? I can't use min or max because it does not give me what I need.
B
SELECT FIRST(DelLoc.Loc) AS Loc, FIRST(DelLoc.Des) AS Des, Count(*) AS TotItems FROM (AddItems INNER JOIN SM ON AddItems.Man = SM.ID) INNER JOIN DelLoc ON AddItems.AddItemsDel = DelLoc.Loc WHERE AddItems.Printed=0 AND (SM.DateIn >= '05/28/2004' AND SM.DateIn <= '05/28/2004') GROUP BY DelLoc.Loc
I get:
[Microsoft][ODBC SQL Server Driver][SQL Server]'FIRST' is not a recognized function name.
If there a equilivent function? I can't use min or max because it does not give me what I need.
B