G
Guest
I have a song database. I have a form with a combo box to find a particular
song title. The code (based on the Access wizard) is as follows:
Private Sub cboSelectSong_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[intSongID] = " & str(Nz(Me![cboSelectSong], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
This works, but it produces an unsorted drop down list of song titles. My
question - is it possible to modify the code so the list is alphabetically
sorted?
(I tried creating a query and setting the Row Source to the field in the
query, but ended up with no values in my combo box)
song title. The code (based on the Access wizard) is as follows:
Private Sub cboSelectSong_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[intSongID] = " & str(Nz(Me![cboSelectSong], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
This works, but it produces an unsorted drop down list of song titles. My
question - is it possible to modify the code so the list is alphabetically
sorted?
(I tried creating a query and setting the Row Source to the field in the
query, but ended up with no values in my combo box)