How can I code it so that each choice loaded as the rowsource will be sorted in ascending order.
I have the following code:
Expand|Select|Wrap|Line Numbers
- Private Sub Product_Type_AfterUpdate()
- Select Case Product_Type.Value
- Case "1. Compressors"
- Model.RowSource = "tbl1"
- Case "2. Actuators"
- Model.RowSource = "tbl2"
- Case "3. Valves"
- Model.RowSource = "tbl3"
- End Select
- End Sub
I was blindly trying to add into the code something like:
Model.RowSource = "tbl3", SORT BY
But it errors out.
Thanks!