S
scott
I have below code on a form that allows report filters. I'm trying to add
"All" to a combo filled with a recordset of years. The "All" gets added, but
instead of showing my years below "All", Access shows the SELECT rowsource
below.
Is there another way to add "All" to a rowsource SELECT statement?
CODE *********
Private Sub Form_Open(Cancel As Integer)
With Me.cmbYear
.RowSourceType = "Value List"
.RowSource = "(All);" & .RowSource
End With
End Sub
SQL RowSource of combo box ***************
SELECT taxYear FROM t_taxYearDefaults ORDER BY taxYear
"All" to a combo filled with a recordset of years. The "All" gets added, but
instead of showing my years below "All", Access shows the SELECT rowsource
below.
Is there another way to add "All" to a rowsource SELECT statement?
CODE *********
Private Sub Form_Open(Cancel As Integer)
With Me.cmbYear
.RowSourceType = "Value List"
.RowSource = "(All);" & .RowSource
End With
End Sub
SQL RowSource of combo box ***************
SELECT taxYear FROM t_taxYearDefaults ORDER BY taxYear