ErrorProvider is slow to respond
for some reason the errorprovider is slow to respond? any ideas
Code:
If Not IsDate(Me.TextBoxDateSentBack.Text) Then
ErrorProvider1.SetError(Me.TextBoxDateSentBack, "Needs to be a date format.")
MsgBox("Needs to be a date format.")
Me.TextBoxDateSentBack.Select()
Valid = 0
Else
' Clear the error.
ErrorProvider1.SetError(Me.TextBoxDateSentBack, "")
Valid = 1
End If
Re: ErrorProvider is slow to respond
I dont know why.. but i do know that i have the same problem. Seems to happen more often when im attatched to an access database. Access seems to slow down the check.
But i dont see where you have a DB connection... so maybe someone else can shed some light on the subject.
Re: ErrorProvider is slow to respond
I use Access and my ErrorProviders always respond instantaneously. Where is this code being called from? Also, is there a reason that you are using a TextBox instead of a DateTimePicker? The validation is already built into the DateTimePicker, plus you can set minimum and maximum dates and the user can select from a drop-down calender, which many people like.