B
B-Dog
This has to be really simple but I can't figure it out. I'm trying to check
to make sure the dataset in not null and a single character string doesn't
equal two characters. I want it to stop if it is null and stop if the
string doesn't equal i or or? If either one is true then run sub. What am
I doing wrong
If dr Is Nothing OrEsle inOut <> "i" Or "o" Then
'bad filename
lstEvents.Items.RemoveAt(0)
Exit Do
End If
to make sure the dataset in not null and a single character string doesn't
equal two characters. I want it to stop if it is null and stop if the
string doesn't equal i or or? If either one is true then run sub. What am
I doing wrong
If dr Is Nothing OrEsle inOut <> "i" Or "o" Then
'bad filename
lstEvents.Items.RemoveAt(0)
Exit Do
End If