S superrob5 Registered User. Local time Today, 23:34 Joined May 8, 2003 Messages 99 May 9, 2003 #1 when I click on the ado control on the form I want to be able to set the focus to the first field. I know how to use setfocus but I dont know where to put the code.????? Thanks in advance.
when I click on the ado control on the form I want to be able to set the focus to the first field. I know how to use setfocus but I dont know where to put the code.????? Thanks in advance.
Nouba Registered User. Local time Tomorrow, 00:34 Joined Oct 20, 2002 Messages 145 May 9, 2003 #2 you could ask in the form's current event if the pointer is in a new record Code: Private Sub Form_Current() If Me.NewRecord Then Me!YourControl.SetFocus End If End Sub
you could ask in the form's current event if the pointer is in a new record Code: Private Sub Form_Current() If Me.NewRecord Then Me!YourControl.SetFocus End If End Sub
S superrob5 Registered User. Local time Today, 23:34 Joined May 8, 2003 Messages 99 May 9, 2003 #3 thank you