asked on
SELECT Left(ID,InStr(ID&'-','-')-1) AS N, MIN(Num) AS minrec FROM info GROUP BY info.N ORDER BY info.N
ASKER
ASKER
Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.
TRUSTED BY
SELECT Left(ID,InStr(ID&'-','-')-
FROM info
GROUP BY Left(ID,InStr(ID&'-','-')-
However, in Access, the GROUP BY also performs a sort, so you can skip the ORDER BY clause in this case.
(°v°)