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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to open a form and navigate to record on subform's subform

Status
Not open for further replies.

keun

Technical User
Jul 15, 2005
262
US
I have a form with a subform, and another subform in that subform.

The main form is Client. The first subform is matter (clients have more than one matter). The nested subform is project. (matters have more than one project.

I have a lookup form, which allows users to apply a bunch of filters to find projects. The form shows client, matter, and project info. What I want to do is to make a double-click open the main form, but navigated to the project nested subform.

I can get the event to open the main form and nav to the proper client, but the matters and projects are a mystery to me.
Code:
Private Sub Project_Name_DblClick(Cancel As Integer)
DoCmd.OpenForm "Main", , , "[clientname] =  """ & Me.Client & """"
End Sub
 
I will try that. Here is where I am unclear - how does this navigate to the appropriate record? It looks like it just sets focus on a field.
 
I was unclear on where you were having problems.

Code:
Set rs=frm.[SubFormControlName#2].Form.RecordsetClone
rs.FindFirst "SomeNumericField=" & SomeNumercVar

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top