I have a main form that contains company information. I want to place three subforms in the main form which will be contact information for three different contacts for the company. I envision an ADD button on each of the subforms that when clicked the Contacts form will open with the company information already entered and I will be able to add a contact to the contact table. I would also like the Contact Name, phone and email only to appear in the subform when I close the Contacts form.
Here are the form names:
Company form: frmCompany
Contact form: frmContacts
Contact subfroms: sfrmContact1; sfrmContact2; sfrmContact3
The Company table primary key is ComoanyID, it also has fkContacts to related to the Contacts table.
The Contact table primary key is ContactID it also has fkCompany to relate to the Contact table.
It is a one to many relaionship Company (one)->Contacts (many).
Is the Openargs property what I need? If it is, I am not clear on how it works.
I also envision that if contact name in the subforms is not blank, the ADD button will change to VIEW and by clicking the VIEW button the Contact form will appear with the contact record displayed.
Any help would be greatly appreciated.
Thanks!
Here are the form names:
Company form: frmCompany
Contact form: frmContacts
Contact subfroms: sfrmContact1; sfrmContact2; sfrmContact3
The Company table primary key is ComoanyID, it also has fkContacts to related to the Contacts table.
The Contact table primary key is ContactID it also has fkCompany to relate to the Contact table.
It is a one to many relaionship Company (one)->Contacts (many).
Is the Openargs property what I need? If it is, I am not clear on how it works.
I also envision that if contact name in the subforms is not blank, the ADD button will change to VIEW and by clicking the VIEW button the Contact form will appear with the contact record displayed.
Any help would be greatly appreciated.
Thanks!