Rmaster2022
Member
- Local time
- Yesterday, 18:15
- Joined
- Apr 1, 2022
- Messages
- 32
I have a navigation form, “frmMain.” One form in the navigation form is “frmPastorViewEdit,” which I understand is a subform of frmMain. In the subform is a combo box “cmbEccBody” The bound column is “PresbyID”
The combo box has in its List Item Edit Form property “frmPresytery” where one can add a value.
I want to write vba code that would automatically add the value to the combo box that was added in the “frmPresbytery,” so that I don’t have to scroll through the list to find it.
I tried the following: [Forms]![frmMain]![frmPastorViewEdit].[Form]![cmbEccBody] = PresbyID
I tried it with and without brackets, and some variations, but it won’t work. Still very much a beginner in vba!
The combo box has in its List Item Edit Form property “frmPresytery” where one can add a value.
I want to write vba code that would automatically add the value to the combo box that was added in the “frmPresbytery,” so that I don’t have to scroll through the list to find it.
I tried the following: [Forms]![frmMain]![frmPastorViewEdit].[Form]![cmbEccBody] = PresbyID
I tried it with and without brackets, and some variations, but it won’t work. Still very much a beginner in vba!