M
matchorno
I have a continuous form with column headers. The column headers are command
buttons that you can click to order the form by that particular field. One
of the fields is a combobox. It has two columns - one hidden bound column
(autonumber) and one not hidden. I want to sort by the second, visible
column.
Right now the code looks like this:
Private Sub cmdSortByJudge_Click()
Me.OrderBy = "[JudgeID]"
Me.OrderByOn = True
End Sub
However, that sorts the form by the first autonumber column of the combobox.
I want to sort it by the second column (JudgesFullName). I can't get it to
work.
I've tried the following:
me.orderBy = "[JudgeID].Column(1)"
as well as:
me.orderBy = "[JudgesFullName]"
But neither works. I've scoured the internet forums with no luck. Any
suggestions are appreciated. Thanks!
buttons that you can click to order the form by that particular field. One
of the fields is a combobox. It has two columns - one hidden bound column
(autonumber) and one not hidden. I want to sort by the second, visible
column.
Right now the code looks like this:
Private Sub cmdSortByJudge_Click()
Me.OrderBy = "[JudgeID]"
Me.OrderByOn = True
End Sub
However, that sorts the form by the first autonumber column of the combobox.
I want to sort it by the second column (JudgesFullName). I can't get it to
work.
I've tried the following:
me.orderBy = "[JudgeID].Column(1)"
as well as:
me.orderBy = "[JudgesFullName]"
But neither works. I've scoured the internet forums with no luck. Any
suggestions are appreciated. Thanks!