Every time i run below code and the If statement is true, my access freezes up.
If i remove so i have 9 numbers in the textbox called txtpersonnummer.
Then it all works.
But if i then put back 10 charachters in the textbox. My access locks up and i need to restart it.
Anyone got any idea of why?
Code:
'count characthers in textbox
If Len(Me.txtpersonnummer.Text) = 10 Then
Me.WarningPersonnummer.Visible = False
Me.txtpersonnummer.BackColor = vbWhite
Exit Sub
Else
Me.WarningPersonnummer.Visible = True
Me.txtpersonnummer.BackColor = vbBlue
End If
If i remove so i have 9 numbers in the textbox called txtpersonnummer.
Then it all works.
But if i then put back 10 charachters in the textbox. My access locks up and i need to restart it.
Anyone got any idea of why?