I have a master form (frmMasterForm)with two subforms: The first subform is labled Companies (off of query qryCompanies with the key being CompNo). This form is set as a tabular form (created from the wizard) where you can select the records in a tabular format. My second subform is Contacts (I am sure that you can see where I am going with this now) that will show the contacts for the selected company. It is built on the query qryContacts. There is a field labeled CompNo in this query that the criteria is set to
[Forms]![Companies]![CompNo]
Now I can have the form Companies opened and a particular record selected. I can run the qryContacts query and it returns that proper data. However, if I attach the subform Contacts and try to open the Master form, it prompts me for a value of Forms!Companies!CompNo (I presume from my qryContacts query off of the field CompNo). Could someone please point out what I have done wrong?
Thanks
[Forms]![Companies]![CompNo]
Now I can have the form Companies opened and a particular record selected. I can run the qryContacts query and it returns that proper data. However, if I attach the subform Contacts and try to open the Master form, it prompts me for a value of Forms!Companies!CompNo (I presume from my qryContacts query off of the field CompNo). Could someone please point out what I have done wrong?
Thanks