MarkWright
Programmer
Hello, I am trying to stop a "by closing" action. I have some Fields that have to be filled out before the formular can be closed. I have been using ( if isnull(field) ) but am not having anyluck stopping the close procedure.
What I would like to do is if a Field is empty but should have something in it that when the Formular is to be closed that a MSGbox comes up and says that Field X has no information and has to be filled out. I want to action to stop and after clicking ok on the Msgbox to return to the Formular to fill out the Fields that need to be filled out.
I have been trying with this code ->
If IsNull(Information.Value) Then
' With Form
' .AbbrechenEreignis
' .AllowAdditions = True
' Information = InputBox("Information", "frmPBS_Testzyclus", "xxxxx"
' End With
' Me.Information.SetFocus
' Exit Sub
End If
but have been having no luck. One Problem is that I have txt and cbo Fields that need to be filled out.
Thanks for your time
Mark
What I would like to do is if a Field is empty but should have something in it that when the Formular is to be closed that a MSGbox comes up and says that Field X has no information and has to be filled out. I want to action to stop and after clicking ok on the Msgbox to return to the Formular to fill out the Fields that need to be filled out.
I have been trying with this code ->
If IsNull(Information.Value) Then
' With Form
' .AbbrechenEreignis
' .AllowAdditions = True
' Information = InputBox("Information", "frmPBS_Testzyclus", "xxxxx"
' End With
' Me.Information.SetFocus
' Exit Sub
End If
but have been having no luck. One Problem is that I have txt and cbo Fields that need to be filled out.
Thanks for your time
Mark