Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用“GoToRecord”命令按主键获取记录?
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