Yearcmb cannot be a bound control if you want to use it as a search tool by selecting from its list. Otherwise you are simply changing the year value in the field for that record. Unbind this control and create a textbox on the form to show the year for the current record. Need to include FdrandYearID field in the RowSource query.
The Namescmb AfterUpdate event is set to [Embedded Macro], needs to be [Event Procedure]. Again, add a textbox to show the Name value for current record.
RecordSource for YearlySubForm can simply be Yearly.
RecordSource for CapacitorBankSubForm can simply be CapacitorBank.
The NotInList event for Yearcmb needs to be renamed if you still want to use it.
Code for the Namescmb and Yearcmb AfterUpdate events ([Event Procedure] in the Events property):
Code:
Private Sub Namescmb_AfterUpdate()
Dim rs As DAO.Recordset
Set rs = Me.RecordsetClone
rs.FindFirst "NameID=" & Me.Namescmb
Me.Bookmark = rs.Bookmark
rs.Close
Me.ctrYearlySubForm.Form.Yearcmb.Requery
Me.Namescmb = Null
End Sub
Code:
Private Sub Yearcmb_AfterUpdate()
Dim rs As DAO.Recordset
Set rs = Me.RecordsetClone
rs.FindFirst "FdrandYearID=" & Me.Yearcmb
Me.Bookmark = rs.Bookmark
Me.Yearcmb = Null
rs.Close
End Sub