G
Guest
I am trying to use VB to exit a form if a certain field is blank.
Currently I am using the following code, but it does not seem to work for me:
Private Sub Status_GotFocus()
If QPR_Number = "" Then
Dim stDocName As String
stDocName = "Buttons.Close Closeout QPR"
DoCmd.RunMacro stDocName
End If
End Sub
Currently I am using the following code, but it does not seem to work for me:
Private Sub Status_GotFocus()
If QPR_Number = "" Then
Dim stDocName As String
stDocName = "Buttons.Close Closeout QPR"
DoCmd.RunMacro stDocName
End If
End Sub