morsy_soliman
New member
- Local time
- Yesterday, 23:52
- Joined
- Apr 26, 2017
- Messages
- 5
I am a little above to be a beginner in MS access and VBA. I am in middle of project in building a MS Access to handle Customer Relation Management include quoting and invoicing. However, the dilemma that I am facing is, I am unable to script a VBA Code to open Sub-form of a Sub-form with a specific record.
I have a form consists of:
1. Main Form (frm_AllCompany) : Company Information with PK: CompanyID
2. Company Locations Sub-form (frmCompanyLocation): Location Information with PK: LocationID
a. Contact Sub-form of Company Locations Sub-form (sfrmContact): Contact Information with PK: ContactID
Forms!frm_AllCompany![frmCompanyLocation]![sfrmContact]
I have a Datasheet form listed all the contacts names. What I am trying to do is to click on the contact name to open the main form for editing the information.
My trouble is that I am unable to script the right VBA Code to open the main form by selecting record from Contact Sub-form by clicking the name from the datasheet form
Forms!frm_AllCompany![frmCompanyLocation]![sfrmContact]
Any help with a draft of the VBA Script I will be appreciated
I have a form consists of:
1. Main Form (frm_AllCompany) : Company Information with PK: CompanyID
2. Company Locations Sub-form (frmCompanyLocation): Location Information with PK: LocationID
a. Contact Sub-form of Company Locations Sub-form (sfrmContact): Contact Information with PK: ContactID
Forms!frm_AllCompany![frmCompanyLocation]![sfrmContact]
I have a Datasheet form listed all the contacts names. What I am trying to do is to click on the contact name to open the main form for editing the information.
My trouble is that I am unable to script the right VBA Code to open the main form by selecting record from Contact Sub-form by clicking the name from the datasheet form
Forms!frm_AllCompany![frmCompanyLocation]![sfrmContact]
Any help with a draft of the VBA Script I will be appreciated