It has been a while since I programmed Access in VBA, so bear with me.
I have this bit of code that works just fine…Just that for some strange reason, when I added a building and rooms, the number order isn’t correct (It looks like this: 9 10 11 12 1 2 3 4 5 6 7 8 in the dropdown list) and I checked my tables, and they all are ordered in sequential order. Go figure…Anyway, what I am attempting is to force it to order in Ascending order, but since the combo box is actually programmed to look at the cabin then filter the rooms, I can’t simply use the Record Source Query. I’d like to add a command to the line that forces it to sort in ascending order. Here’s the snippet of code:
Forms!frmHousingMatchup!fsubRoom!cboRoom.RowSource = “SELECT [tblroom].[RoomID], [tblroom].[Room]” & “FROM [tblroom]WHERE [CabinID] = ” & Me!CabinID
Where in that code do I tell it to sort in ascending order?
Thanks a million!