5

如何使用“GoToRecord”命令按主键获取记录?

4

1 回答 1

15

I suspect you wish to move to a record given the primary key.

MyKey = 3
With Me.Recordset
    .FindFirst "ID=" & MyKey

    If .NoMatch Then
        MsgBox "Not found"
    End If
End With
于 2012-09-04T08:56:22.603 回答