I have a main form with a subform in it the main form contains a close
command button. The trouble is that I can close the form without any data
in the subform, so I want have an error message to say that the subform
details must be entered before closing and then set the focus back to the
subform. Any Ideas?
Steve - 30 Mar 2005 03:20 GMT
Do you think
if Me.Dirty=False then... ?
might work?
Steve
> I have a main form with a subform in it the main form contains a close
> command button. The trouble is that I can close the form without any data
> in the subform, so I want have an error message to say that the subform
> details must be entered before closing and then set the focus back to the
> subform. Any Ideas?