Combo box

Programming

Registered User.
Local time
Today, 06:11
Joined
Jul 5, 2018
Messages
20
Hi,

My combo box selects the first value in my table , how can I prevent that?
 
Change the RecordSource of your combo box from a table to a query and sort the query however you like.
 
dont use Bound combobox.
 
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.
 

Users who are viewing this thread

Back
Top Bottom