B
BAO
I cannot figure out the problem here. The loop either gets stuck or doesn't
loop. Can anyone help?
Private Sub Text76_BeforeUpdate(Cancel As Integer)
Dim rs As DAO.Recordset
Set rs = DBEngine(0)(0).OpenRecordset("tblF_InvUsedList")
If Me.Text76 = -1 Then
Do
If DLookup("[Used]", "tblF_InvUsedList", _
"[Check#ID]= " & Me![Check#ID]) = 0 Then
MsgBox "put message here."
End If
rs.MoveNext
Loop
End If
rs.Close
End Sub
loop. Can anyone help?
Private Sub Text76_BeforeUpdate(Cancel As Integer)
Dim rs As DAO.Recordset
Set rs = DBEngine(0)(0).OpenRecordset("tblF_InvUsedList")
If Me.Text76 = -1 Then
Do
If DLookup("[Used]", "tblF_InvUsedList", _
"[Check#ID]= " & Me![Check#ID]) = 0 Then
MsgBox "put message here."
End If
rs.MoveNext
Loop
End If
rs.Close
End Sub