Vicky Flanagan
March 30th, 1999, 12:44 PM
Can anyone help with this one?
I'm trying to set focus on DPR_Number control when clicking on DPR/Budget Information tab on a form. Is this the correct code? It's not working.
NAMES
Form name is NewPO
Tab contrl name is Tabctl31
Form on the tab control is DPR
Control on the form is DPR_Number
CODE
Controls!tabctl31!.SetFocus
Forms!DPR!.SetFocus
Controls!DPR_Number!.SetFocus
Also, I want the focus to move to a control in another page of the tab control (the Project Information tab) when the last control on the DPR form (Budget Amount in the DPR/Budget Information tab) has lost focus. How do I write the code for this?
Thanks so much!
Vicky
I'm trying to set focus on DPR_Number control when clicking on DPR/Budget Information tab on a form. Is this the correct code? It's not working.
NAMES
Form name is NewPO
Tab contrl name is Tabctl31
Form on the tab control is DPR
Control on the form is DPR_Number
CODE
Controls!tabctl31!.SetFocus
Forms!DPR!.SetFocus
Controls!DPR_Number!.SetFocus
Also, I want the focus to move to a control in another page of the tab control (the Project Information tab) when the last control on the DPR form (Budget Amount in the DPR/Budget Information tab) has lost focus. How do I write the code for this?
Thanks so much!
Vicky