I have the following Tables:
zmtContactName
zmtCompany
I have the following forms:
ContactName_Edit
ContactName_List
Company_Edit
Company_List
Now each company may have several offices and several Contacts.
On the Main Form Company_Edit I actually have three subforms:
1) A subform of Company_List linked (Parent Child) by CompanyName (Shows all the offices - including the one on the main form - bit irritating but I do not know how to exclude it)
2) A subform of ContactName_Edit (as a continuous form)linked by CompanyID (I only want to show those contacts for that specific Company Office)
3) A subform showing the detail of the contact currently highlighted in the subform of ContactName_Edit including notes. I prefer the look of this with a large clear note field instead of the continuous form look for all contacts. This last subform is achieved by a non visible text box on the main form with the following code: =ContactName_Edit.Form!ContactNameID
When I am in Company_List I can easily use a button to go to the zmtCompany_Edit form with the specific CompanyID showing.
However, I want to achieve two things:
1) When I am in ContactName_List I want to use a button to go to the form Company_Edit with the correct CompanyID AND the correct Contact showing in the subform!
2) In the Mainform Company_Edit, I would like to have a button to add a new contact in contactName_Edit. I know I can simply add a name in the subform as it is continuous forms. I would prefer, however to have a pop up and not Allow edits in the continuous forms
Phew! I hope the anove is clearer than mud!
In summary therefore I am looking for code advice and where to put it (with the on-Click event for each button)? for each of the above two queries.
Thank YOU!
zmtContactName
zmtCompany
I have the following forms:
ContactName_Edit
ContactName_List
Company_Edit
Company_List
Now each company may have several offices and several Contacts.
On the Main Form Company_Edit I actually have three subforms:
1) A subform of Company_List linked (Parent Child) by CompanyName (Shows all the offices - including the one on the main form - bit irritating but I do not know how to exclude it)
2) A subform of ContactName_Edit (as a continuous form)linked by CompanyID (I only want to show those contacts for that specific Company Office)
3) A subform showing the detail of the contact currently highlighted in the subform of ContactName_Edit including notes. I prefer the look of this with a large clear note field instead of the continuous form look for all contacts. This last subform is achieved by a non visible text box on the main form with the following code: =ContactName_Edit.Form!ContactNameID
When I am in Company_List I can easily use a button to go to the zmtCompany_Edit form with the specific CompanyID showing.
However, I want to achieve two things:
1) When I am in ContactName_List I want to use a button to go to the form Company_Edit with the correct CompanyID AND the correct Contact showing in the subform!
2) In the Mainform Company_Edit, I would like to have a button to add a new contact in contactName_Edit. I know I can simply add a name in the subform as it is continuous forms. I would prefer, however to have a pop up and not Allow edits in the continuous forms
Phew! I hope the anove is clearer than mud!
In summary therefore I am looking for code advice and where to put it (with the on-Click event for each button)? for each of the above two queries.
Thank YOU!