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

Selecting result on query subform

Status
Not open for further replies.

jcpelejo

Programmer
Jul 29, 2001
70
US
Hello. I was wondering if there is any way of selecting a record from a query subform results and placing the information after double clicking on the result onto another form. Please advise.
 
I have a query subform called [Project subform] which is displayed in form view on a form called [Project].
The following code is located in the double click event of one of the controls on the subform and opens another form called [ProjectView]. The criteria sent to open form [ProjectView] is [Property_id] which is taken from which ever record is double clicked on the subform.


Private Sub Cntrl1_DblClick(Cancel As Integer)
DoCmd.OpenForm "ProjectView", acNormal, "", "[Property_id]=[Forms]![Project]![Project subform].[Form]![Property_ID]", acEdit, acNormal
End Sub


I hope this makes some sort of sense and is of some help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top