Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27514

Empty Textbox = Program crashes?

$
0
0
The program I have written keeps crashing if the textbox is not filled in..how do I Prevent this?

this is the code I have this far..
'to make sure that user enters week number less than 52

If (txtReportingPeriod.Text > 52) Then
MessageBox.Show("Please enter the week number for this payroll period. Number may not be over 52.", "Error-Incorrect week number submitted.")

End If

Viewing all articles
Browse latest Browse all 27514

Trending Articles



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