I need the following to run when the user tries to close the form:
If Me.opgProjectStatus = 2 And IsNull(txtDateClosed) Then
Dim MsgBox5 As Integer
MsgBox5 = MsgBox("You must enter a value for 'Date Closed' or Select 'Open' for Project Status", vbOKOnly)
Can someone tell me what event I need to tie it to (right now I have it tied to the form unload event and it's not working.
My end goal is the user can't save the information if the above condition exists.
Can someone tell me how to write please ... Thanks!
If Me.opgProjectStatus = 2 And IsNull(txtDateClosed) Then
Dim MsgBox5 As Integer
MsgBox5 = MsgBox("You must enter a value for 'Date Closed' or Select 'Open' for Project Status", vbOKOnly)
Can someone tell me what event I need to tie it to (right now I have it tied to the form unload event and it's not working.
My end goal is the user can't save the information if the above condition exists.
Can someone tell me how to write please ... Thanks!