Using VBA to Populate the row source of a Value List as the Row Source Type.
Good day to all. I have a list box named lbxReports with several report names on it and i want to specifically call a set of row source on the chosen report name to the combo box named cboFilterby using Value list as the row source type and this will be triggered via after update event.
I tried to use this (but didn't work at the moment):
Private Sub lbxReports_AfterUpdate()
if me.lbxReports = "Payment Summary" then
me.cboFilterBy.Rowsource = _
"Contact Name";"Account Type";"Transaction Name"
End if
End Sub
Good day to all. I have a list box named lbxReports with several report names on it and i want to specifically call a set of row source on the chosen report name to the combo box named cboFilterby using Value list as the row source type and this will be triggered via after update event.
I tried to use this (but didn't work at the moment):
Private Sub lbxReports_AfterUpdate()
if me.lbxReports = "Payment Summary" then
me.cboFilterBy.Rowsource = _
"Contact Name";"Account Type";"Transaction Name"
End if
End Sub
Last edited: