cynapattery
Registered User.
- Local time
- Yesterday, 16:51
- Joined
- Jul 9, 2013
- Messages
- 28
Hi,
I am trying to check whether either one of the following text fields are filled and only then to proceed.
I used an If ElseIf loop where first criteria(name) should be filled. and minimum one textbox from rest of it.
But when I run it, it checks like an AND function. It checks whether first name is missing and then only if all the fields(website, email, onlineform) are filled I can proceed.
Thanks & Awaiting a solution.
I am trying to check whether either one of the following text fields are filled and only then to proceed.
I used an If ElseIf loop where first criteria(name) should be filled. and minimum one textbox from rest of it.
Code:
If IsNull(Me.FirstName) Then
MsgBox ("FirstName Missing!")
ElseIf IsNull(Me.Website.Value) Or IsNull(Me.Email1.Value) Or IsNull(Me.online_form.Value) Then
MsgBox ("Data Missing!")
Else
But when I run it, it checks like an AND function. It checks whether first name is missing and then only if all the fields(website, email, onlineform) are filled I can proceed.
Thanks & Awaiting a solution.