G
Guest
Hello,
I have Access 2003. I need to create code to check to see if my field named
"Contents" is empty and if it is, to prompt the user. I've tried various
ways to handle this, but nothing is working. Below is my latest code which
also doesn't work.
'Check to make sure Contents is not empty
If IsNull([Contents]) = True Then
strMsg = strMsg & "Contents field can't be empty"
Me.Contents.SetFocus 'set the focus to the field
GoTo Err_Cancel_Button
End If
Any assistance would be greatly appreciated.
I have Access 2003. I need to create code to check to see if my field named
"Contents" is empty and if it is, to prompt the user. I've tried various
ways to handle this, but nothing is working. Below is my latest code which
also doesn't work.
'Check to make sure Contents is not empty
If IsNull([Contents]) = True Then
strMsg = strMsg & "Contents field can't be empty"
Me.Contents.SetFocus 'set the focus to the field
GoTo Err_Cancel_Button
End If
Any assistance would be greatly appreciated.