Good Morning,
I have a combo box that should be displaying a list of codes based on the selection of fund types in another combo box. If I select somewhere in the "Sub_BOC1" combo box that is not displaying the list of codes it saves a record in the table. Any Ideas why this is happening? I have provided a picture of the form and code, hope it helps. Thank you!
The row source for the combo box bound to the field "CNTY" Code:
SELECT DISTINCT County FROM tbl_Accnt_code ORDER BY County
In the after update event of the combo box CNTY Code:
Private Sub County_AfterUpdate()
Me.Accounting_Code.Requery
Me.Accounting_Code.Value = Null
Me.Accounting_Code.SetFocus
End Sub
And the row source for the "Accounting_Code" combo box Code:
SELECT [AccountingCode] FROM tbl_Accnt_code WHERE [County] = Forms!frm_Expend.CNTY ORDER BY [AccountingCode]
NOTE: THE CODE ABOVE WORKS FINE.
The row source for the combo box bound to the field "Fund" Code:
SELECT DISTINCT Fund_Type FROM tbl_Fund_Type ORDER BY Fund_Type
In the after update event of the combo box Fund Code:
Private Sub Fund_AfterUpdate()
Me.SUB_BOC1.Requery
Me.SUB_BOC1.Value = Null
Me.SUB_BOC1.SetFocus
End Sub
And the row source for the "SUB_BOC1" combo box Code:
SELECT [SUB_BOC] FROM tbl_Items_BOC WHERE [Fund_type] = Forms!frm_Expend2.Fund ORDER BY [SUB_BOC]