Set focus on originating form when 2nd form is closed

  • Thread starter Thread starter Mike Revis
  • Start date Start date
M

Mike Revis

Hi Group
Access 2000 Win XPpro

On frmJob I have cmdAir which opens frmAir.

frmAir is Popup yes, Modal yes.

When I close frmAir the focus on frmJob remains on cmdAir where it was when
I clicked it.

I cannot figure out how to move the focus on frmJob to [JobNumber] when
frmAir closes.

(Just because I want to)

As always any advise or suggestion is welcome.

Mike
 
In the Close event for frmAir, enter:
Forms!frmJob.JobNumber.SetFocus
 
Thank you Mark.
I thought I had tried that but I guess I didn't try it correctly.
Works now.
 
Back
Top