Or statement

  • Thread starter Thread starter Uddinj1
  • Start date Start date
U

Uddinj1

Hi All,

I am trying to write a statement like

if A or B or C is not date then
Msgbox "Enter Date"

I can do individual ones like
if isdate(A)=false then
msgbox "Enter date"

How do I make one statement to cover all three or more conditions?

Thanks for you help.

Regards

UJ
 
Hi
try
If Not IsDate(A) or Not IsDate(B) or Not IsDate(C) then
Msgbox "Enter Date"
end if
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top