Did you manage to solve your issue? Since you are a beginner i would just point out two thing's with the function you are using. Unless you plan on using it else where in your project it should be private. Nothing else has any business knowing it exists. The second issue is this lineIsdataEnough is a Boolean. You are comparing this to true twice.Code:If IsDataEnough() = True ThenIt's also worth saying i would strongly suggest using the validating event of each textbox. When you are ready then call Me.ValidateChildren()Code:If IsDataEnough() Then
I find looping the textbox controls a really messy way of validating the values.


Reply With Quote

