larrydavid
Programmer
Hello,
I have a function that fires ok in an AutoExec macro:
Public Function CSAlert()
Dim rs As DAO.Recordset
Set rs = CurrentDb.OpenRecordset("dbo_CS_Input", dbOpenDynaset, dbSeeChanges)
Do While Not rs.EOF
If rs!Pre_Approval = False Then
'Debug.Print rs!id
MsgBox ("THERE ARE MANUAL CHECK REQUESTS AWAITING PRE-APPROVAL!")
End If
rs.MoveNext
Loop
End Function
Is there a way to keep the MsgBox from popping up again after I click "OK" the first time? I realize that for each record in the loop a MsgBox will appear but I was thinking there might be a way to suppress any subsequent appearances of the MsgBox after the first record where the condition is met. Any help with this or a better approach would be greatly appreciated.
Thanks,
Larry
I have a function that fires ok in an AutoExec macro:
Public Function CSAlert()
Dim rs As DAO.Recordset
Set rs = CurrentDb.OpenRecordset("dbo_CS_Input", dbOpenDynaset, dbSeeChanges)
Do While Not rs.EOF
If rs!Pre_Approval = False Then
'Debug.Print rs!id
MsgBox ("THERE ARE MANUAL CHECK REQUESTS AWAITING PRE-APPROVAL!")
End If
rs.MoveNext
Loop
End Function
Is there a way to keep the MsgBox from popping up again after I click "OK" the first time? I realize that for each record in the loop a MsgBox will appear but I was thinking there might be a way to suppress any subsequent appearances of the MsgBox after the first record where the condition is met. Any help with this or a better approach would be greatly appreciated.
Thanks,
Larry