I'm building a combobox with the following:
Select 1 or 2 seats: 1 2 And I need to show 1 or 2 as selected depending on the result of a query.
How can I do that?
I have done so far:
SQL = " SELECT numberOfSeats FROM mytable " SQL = SQL & " WHERE userID ='" SQL = SQL & txtuserID.Text & "'" Set auxRes = UAN.OpenResultset(SQL, rdOpenDynamic, rdConcurValues, 0) cmbNumberOfSeats.Clear cmbNumberOfSeats.AddItem "Select 1 or 2 seats" cmbNumberOfSeats.AddItem "1" cmbNumberOfSeats.AddItem "2" Thanks!!