一个小 有关问题

一个小 问题表单上有 grid ,text1,command1代码如下select 编号 from tablename into cursor name2 oder b

一个小 问题
表单上有 grid ,text1,command1
代码如下

select 编号 from tablename into cursor name2 oder by 编号 desc

thisform.gird1.recordsource = "name2"

现在需要解决的问题是:

点击command1 后

text1 显示 grid 排序后第一个数值 +1

就是递增1 我不想每次手动输入
怎么实现啊?




[解决办法]
goto top in name2
thisform.text1.value = name2.编号+1