Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I jump to a specific record in a list

Status
Not open for further replies.

pmo

Technical User
Jan 15, 2001
76
AU
A have a form that isn't based on a query. Purely cosmetic. Within this form I have a form that is a list of clients and their details. (A bit like a datasheet)
The list is now very long.
I have a combo box on the main form. When I select a client from the list I would like to be able to jump to the specific record in the subform list.

My knowledge of code is almost nill but am trying the following.

Private Sub Combo24_AfterUpdate()
DoCmd.GoToControl ("ClientListF")
DoCmd.GoToRecord , , acFirst, ("Client Id") = Forms("ClientMainF")("Combo24")
End Sub

This is not erroring but it doesn't work.
Can any one help?

Wayne
 
It's as simple as this

Private Sub Combo24_AfterUpdate()

Me.RecordsetClone.FindFirst "[Client ID] = Me.Combo24"
Me.Bookmark = Me.RecordsetClone.Bookmark

End Sub

Regards Savil


 
Thanks Savil,
I'll give it a go.
Wayne
 
Savil,
No luck..

The combo box is on the main form but I need it to select from the list that is on a subform.

Main form is "ClientMainF" with Combo24 on it.
The list is the subform "ClientListF"

Can you offer further advice?

Wayne
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top