Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15628

Error in IF statement

$
0
0
Hi All, I am using the below if statement that seems to be giving me problems. The first part of my statement is false, but I am getting a message box popup. I am not sure why I am getting the message if right away the beginning is false. The "OrElse" is true, but thats it.

Code:

If (CmbLateStart.Visible = True AndAlso CmbLateStart.SelectedItem = "---" OrElse CmbLateStart.Text = vbNullString) Then

Viewing all articles
Browse latest Browse all 15628

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>