View Single Post
  #2  
Old December 20th, 2006, 09:31 PM posted to microsoft.public.access.forms
Ryan
external usenet poster
 
Posts: 551
Default Open a form from a subform

I forgot to mention that when I try to run the procedure it ask me to "Enter
the Parameter Value" for [Find a Batch Cover Sheet Subform!Batch ID]

"Ryan" wrote:

I have a form "Filters" that filters a subform "Find a Batch Cover Sheet
subform". I would like to be able to have another form open, "Find a Batch
Cover Sheet", when I double click on the subform results. Here is what I
have come with so far.

Private Sub Batch_ID_DblClick(Cancel As Integer)
DoCmd.OpenForm "Find a Batch Cover Sheet", , , "[Find a Batch Cover Sheet
Subform]![Batch ID]=Forms![Find a Batch Cover Sheet]![Batch ID]"
End Sub

As you can see I want the form "Find a Batch Cover Sheet" to open with the
[Batch ID] field that I double click on the "Find a Batch Cover Sheet
Subform". Can anyone please help??