Hi,
thank you for your interest!!
(TxtName bound to 'Name' is a Primary key and there is only 1 name in the table - an odd example because 'Name' is actually another String. I just called it 'Name' for simplicity. Since it is a primary key there are not many records with the same 'Name'- which could have complicated it)
And Suddenly I got it to work (!):
I could use the AfterUpdate event like this (no need for an extra button):
Code:
Private Sub TxtSearch_AfterUpdate()
TxtName.SetFocus
DoCmd.FindRecord TxtSearch.Value, , True, True, True
End Sub
This jumps to the wanted record ! And the browsing possibility is kept - should the user want to do that instead - because the recordset does not change. But the TxtSearch value must be exactly the same (case) as in the searched Name.
I am very glad that your commitment helped me to find this.
'TxtName.Setfocus' was the key to this. Thank you!