I am trying to verify if a text box is equal to 0 or is blank before the close button is pushed. The code works if the box equals 0 but not if it is blank. Can anyone help me with this. Here is the code:
Code:
Private Sub Command33_Click() UnusedHRS.SetFocus If UnusedHRS = 0 Or UnusedHRS = Null Then DoCmd.Close ElseIf UnusedHRS <> 0 Then MsgBox "There are still hours that are unaccounted for", vbInformation, "Staffmark" End If End Sub
Comment