J
jrthor_85 via AccessMonster.com
Greetings,
I have a form [PartLookup] which is basically a master list of all [PartNo]
with corresponding [InquiryNo] and customer. There are multiple part numbers
per inquiry, and the same partno may exist in multiple inquiries. I have
another form [NewInquiry] (inquiry overview) with a subform
[NewInquirySubform] (parts within inquiry).
I am trying to create an OpenForm macro that on doubleclicking [PartNo] in
the [PartsList1] form, will open both the specified [PartNo] in the frm
[NewInquirySubform], but also the corresponding [InquiryNo] in the parent frm
[NewInquiry].
I have tried
[Forms]![NewInquirySubform]![PartNo]=[Forms]![PartLookup]![PartNo]
with the OpenForm set to the parent form ( [NewInquiry] ), and many
variations on that, but every time I try to run the macro, it prompts me to
enter the [PartNo]. Even if I just target OpenForm to frm[NewInquiry], which
does not have at PartNo field, and run the macro
[PartNo]=[Forms]![PartLookup]![PartNo]
which shouldn't work, it would pop up the dialog and, if entered, would
open the form. I have also tried something like
[InquiryNo] = Forms![PartLookup]![InquiryNo] And Forms![NewInquiry]!
[NewInquirySubform]![PartNo] = Forms![PartLookup]![PartNo]
It seems no matter how I do it, it always pops up the dialog.
Any suggestions would be greatly appreciated.
John T.
I have a form [PartLookup] which is basically a master list of all [PartNo]
with corresponding [InquiryNo] and customer. There are multiple part numbers
per inquiry, and the same partno may exist in multiple inquiries. I have
another form [NewInquiry] (inquiry overview) with a subform
[NewInquirySubform] (parts within inquiry).
I am trying to create an OpenForm macro that on doubleclicking [PartNo] in
the [PartsList1] form, will open both the specified [PartNo] in the frm
[NewInquirySubform], but also the corresponding [InquiryNo] in the parent frm
[NewInquiry].
I have tried
[Forms]![NewInquirySubform]![PartNo]=[Forms]![PartLookup]![PartNo]
with the OpenForm set to the parent form ( [NewInquiry] ), and many
variations on that, but every time I try to run the macro, it prompts me to
enter the [PartNo]. Even if I just target OpenForm to frm[NewInquiry], which
does not have at PartNo field, and run the macro
[PartNo]=[Forms]![PartLookup]![PartNo]
which shouldn't work, it would pop up the dialog and, if entered, would
open the form. I have also tried something like
[InquiryNo] = Forms![PartLookup]![InquiryNo] And Forms![NewInquiry]!
[NewInquirySubform]![PartNo] = Forms![PartLookup]![PartNo]
It seems no matter how I do it, it always pops up the dialog.
Any suggestions would be greatly appreciated.
John T.