Thank you for your help Rick - I'm still having problems. I'm sure it's
something I'm doing wrong. Would you be so kind to give me the code exactly
how it should be so I can copy and paste it into the BeforeUpdate event? I
hope this isn't asking too much. Thank you
> Thank you for your help Rick - I'm still having problems. I'm sure
> it's something I'm doing wrong. Would you be so kind to give me the
> code exactly how it should be so I can copy and paste it into the
> BeforeUpdate event? I hope this isn't asking too much. Thank you
Private Sub Form_BeforeUpdate(Cancel as Integer)
If Len(Nz(Me!txtThis, "")) = 0 _
Or Len(Nz(Me!txtThat, "") = 0 _
Or Len(Nz(Me!txtTheOther, "")) = 0 _
Or Len(Nz(Me!txtWho, "")) = 0 _
Or Len(Nz(Me!txtWhat, "")) = 0 _
Or Len(Nz(Me!txtIDontKnow, "")) = 0 Then
MsgBox "You must fill out every field in this form", vbOKOnly
Cancel = True
End If
End Sub

Signature
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Karen - 16 May 2005 17:19 GMT
Thanks for your help - Although, when I paste the code into my BeforeUpdate
event, 6 lines of code changes to red. Starting with "If Len(Nz(Me!txtThis,
"")) = 0 _"
Why is this happening?
Thank you, Karen
> > Thank you for your help Rick - I'm still having problems. I'm sure
> > it's something I'm doing wrong. Would you be so kind to give me the
[quoted text clipped - 14 lines]
>
> End Sub
Douglas J. Steele - 16 May 2005 22:16 GMT
Do you have a space in front of the underline character?

Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
> Thanks for your help - Although, when I paste the code into my
> BeforeUpdate
[quoted text clipped - 23 lines]
>>
>> End Sub