Gustav Brock
Gustav at cactus.dk
Thu Dec 29 12:36:25 CST 2005
Hi John Seems like you need to Group By SysDescr and pick Min for the other fields ... or is this not a full example? /gustav >>> jwcolby at ColbyConsulting.com 29-12-2005 19:23:43 >>> I have a "system" table, with the PKID (autonumber), the name of the system, and the system description: PK Sys Name Sys Descr 1752 AHU7135 Air Handling Units 1754 AHU7137 Air Handling Units 1743 AC0037 Autoclaves (Decon) 1744 AC0038 Autoclaves (Decon) 1745 AC0039 Autoclaves (Decon) Etc. I need to select the PK, Name and description for the FIRST instance of each system of a given description, and populate a combo with the results: 1752 AHU7135 Air Handling Units 1743 AC0037 Autoclaves (Decon) I don't know how to do this is a simple SQL statement. Any suggestions? John W. Colby www.ColbyConsulting.com