GoToRecord (1 Viewer)

tarcona

Registered User.
Local time
Today, 01:40
Joined
Jun 3, 2008
Messages
165
Another question, say there is two "Does". One in one company, and One in the other. When you go to the next company, the code doesnt work anymore and highlights the first record again. Any suggestions?
 

ErikSnoek

Programmer
Local time
Yesterday, 23:40
Joined
Apr 26, 2007
Messages
100
There are several ways to fix that. One of them is to add something like this to the On Current event of the subform:
Code:
    If Parent.RecordSource <> "Accounts" Then 'is a select query when the search has results
        Me.RecordsetClone.FindFirst "[Last Name] Like '" & Parent.txtSearchLast & "'"
        Me.Bookmark = Me.RecordsetClone.Bookmark
    End If
 

Users who are viewing this thread

Top Bottom