Okay, I have the following code in my Form_Load
Code:
If datanavigator.Recordset.RecordCount = 0 Then
MsgBox "There are No Invoices to be Viewed/Printed!", vbCritical, "No Records"
If vbOK = True Then
Unload Me
End If
End If
So it basically checks if the ADO (datanavigator) is empty and if it is, it brings up the message box, and when the person clicks Ok, it unloads the form, but here is the problem.

Using the code above, when the person clicks the ok, the message box stays there regardless of how many times u press ok and the app crashes.

How can I upload the form?