[此贴子已经被作者于2007-10-14 21:26:25编辑过]
简单地说,就是查询数据表里某一列的最大值。SQL="select top 1 [列名] from [表名] order by [列名] desc" ' asc 12345, desc 54321Set Rs=Conn.Execute(SQL)Msgbox Rs("[列名]")
2,3楼均正解~~