I’m having some problems handling errors arising when moving back and forward from suforms used for data entry. The usual erro is 2110, “can’t move focus to control …”, which seems to arise in 3 situations. The first is where the control to which the focus is being given has some code attached redirecting the focus, the second is odd random unreproduceable glitch, and the third is if there has been a key violation.
My problem is that I can’t find any way to distinguish between the 3 cases in VB. In cases 1 and 2 I’d just like to resume, in case 3 I clearly need to do something, or get the user to do something. Is there anyway to find out if there has been a key violation from VBA?
thanks for your help