http://www.foxtable.com/webhelp/topics/0553.htm
例如在订单表中,我们希望将光标定位到最后一次订购PD01产品的订单:
Dim dr As DataRow
dr = DataTables("订单").Find("[产品] = 'PD01'", "日期 Desc")
If dr IsNot Nothing Then
Dim wz As Integer = Tables("订单").FindRow(dr)
If wz >= 0 Then
Tables("订单").Position = wz
End If
End If
你这个条件改为 ("[年] isnot null","_identify desc")
[此贴子已经被作者于2019/8/29 9:52:07编辑过]