A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Open a form from a subform



 
 
Thread Tools Display Modes
  #1  
Old December 20th, 2006, 09:55 PM posted to microsoft.public.access.forms
Ryan
external usenet poster
 
Posts: 551
Default Open a form from a subform

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??
Ads
  #2  
Old December 20th, 2006, 10: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??

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:53 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright 2004-2018 OfficeFrustration.
The comments are property of their posters.