Thanks Rich,
Tried that, still didnot work. The subform is in a tab control, so i also tried set focus on that before the subform and still get same error. I have the code in the after update of the first field in the subform so doesn't the field already have the focus?
Confused
:(