以下一段語句,我執行時怎么沒反應.......
高手幫忙看看......
Private Sub Form_BeforeUpdate(Cancel As Integer)
Dim dbs As DAO.Database
Dim rst1 As DAO.Recordset
Set dbs = CurrentDb()
Set rst1 = dbs.OpenRecordset("data1", dbOpenDynaset)
rst1.FindFirst "[ITEM]='" & Me.ITEM & "'"
If rst1.NoMatch Then
MsgBox "nomatch"
Else
msgobx "match"
End If
rst1.Close
Set dbs = Nothing