Using A2007.
I have a Subform wherein a user enters a number in a field. If the number is outside of a permitted range, he gets a message and his entry is deleted. The range is dependent on other factors, so can’t do it with simple table validation rules.
I am using VBA in a module (several subforms with same procedure) to do this. How do I get the cursor to stay in the field that was just deleted so that user can insert a proper number without using his mouse?. I tried a goto command to another field in the same record followed by goto field just deleted. It works most of the time, but not always. I sometimes get a message saying that there is no such field on the first goto. Very puzzling. Any help much appreciated.