P Programming Registered User. Local time Today, 06:11 Joined Jul 5, 2018 Messages 20 Aug 5, 2018 #1 Hi, My combo box selects the first value in my table , how can I prevent that?
NauticalGent Ignore List Poster Boy Local time Today, 09:11 Joined Apr 27, 2015 Messages 6,753 Aug 5, 2018 #2 Change the RecordSource of your combo box from a table to a query and sort the query however you like.
Change the RecordSource of your combo box from a table to a query and sort the query however you like.
arnelgp ..forever waiting... waiting for jellybean! Local time Today, 21:11 Joined May 7, 2009 Messages 20,250 Aug 5, 2018 #3 dont use Bound combobox.
P Programming Registered User. Local time Today, 06:11 Joined Jul 5, 2018 Messages 20 Aug 7, 2018 #4 arnelgp said: dont use Bound combobox. Click to expand... But I want to store the selected data in a table
arnelgp said: dont use Bound combobox. Click to expand... But I want to store the selected data in a table
arnelgp ..forever waiting... waiting for jellybean! Local time Today, 21:11 Joined May 7, 2009 Messages 20,250 Aug 7, 2018 #5 add another textbox to your form. bound it to the field you want to save. set its Visible Property to No. add event (After Update) to the Unbound Combo to set the value of the hidden textbox: Code: Private Sub yourCombo_AfterUpdate() Me.hiddenTextbox = Me.yourCombo End Sub therefore, whatever you select on the unbound combo will be saved to your table.
add another textbox to your form. bound it to the field you want to save. set its Visible Property to No. add event (After Update) to the Unbound Combo to set the value of the hidden textbox: Code: Private Sub yourCombo_AfterUpdate() Me.hiddenTextbox = Me.yourCombo End Sub therefore, whatever you select on the unbound combo will be saved to your table.