Dear All
Hello again. I have a form sub form set up in Access, by using the sub form’s enter event (on the main form event list) I’m trying to carry out a check for data validation and depending on the result set the focus back to a control on the main form. So far everything I’ve tried has resulted in error messages along the lines of “Can Not Set Focus to ‘control name'”.
I’ve tried the lost focus event on the main form, didn’t trigger at all so no good.
I’ve tried using Docmd.GotoControl “controlname” and got a very similar error message.
I’ve tried the control name prefixed Form!FormName!ControlName.Setfocus, no luck.
The control I’m trying to set the focus to is both enabled and not locked, I’ve also tried a few other controls on the same form, thinking it might be a check box thing, but the same problem resulted.
Anyone got any ideas? Please
Ian