There are a number of different ways to do this, Greg, but for me the simplest is to add a new property to the Form (call it FocusControl). Put the full object pathname of the control there, i.e. "THISFORM.txtFirstName"
In Add.Click()
cGoControl=THISFORM.FocusControl
&cGoControl..SetFocus()
>I'm using the MS VFP 6.0 framework. I modified the navigation toolbar to include an add record button and a delete record button. How do I set the focus to the first control on the form when the add button is clicked. No matter which form is active?
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05