B
blendes
My code is supose to pop a message every tenth record. I found this code and
modifed it to make it work.
Private Sub Form_Load()
Me.txtCount = Me.Recordset.RecordCount
End Sub
Private Sub Form_AfterUpdate()
Dim lngCount As Long, lngStart As Long
lngCount = Me.Recordset.RecordCount
lngStart = Me.txtCount
If lngCount - lngStart >= 10 Then
' Reset txtCount
Me.txtCount = Me.Recordset.RecordCount
MsgBox "Please Do Cleanlines Test"
End If
End Sub
It pops up the message every record instead of every tenth record.
modifed it to make it work.
Private Sub Form_Load()
Me.txtCount = Me.Recordset.RecordCount
End Sub
Private Sub Form_AfterUpdate()
Dim lngCount As Long, lngStart As Long
lngCount = Me.Recordset.RecordCount
lngStart = Me.txtCount
If lngCount - lngStart >= 10 Then
' Reset txtCount
Me.txtCount = Me.Recordset.RecordCount
MsgBox "Please Do Cleanlines Test"
End If
End Sub
It pops up the message every record instead of every tenth record.