combo box value

  • Thread starter Thread starter injanib via AccessMonster.com
  • Start date Start date
I

injanib via AccessMonster.com

How can I make a selection from a combobox stay the same for nex records
untill I go back and change it? That is with keeping the combobox in the
detail section of the form.
 
You need to bind it to a field in your database.

Put a field in your database to store the selection from your combo, then in
your form, set the Control Source of your combo to that field.

Steve
 
It is already bound to a feild called [Courier] and that is the control
source for the combobox in the form. the options in the combobox are "FedEx",
"UPS", "DHL" and "Others". I use this form to login incoming packages. When I
select FedEx to log in fedex packages I have to expand the combobox and
select FedEx for every package. I want have it so that it stays on FedEx
untill I manually change the selection.
 
Set the Default Value of the ComboBox
ie
Private Sub Combo_AfterUpdate()
Me.Combo.DefaultValue = "='" & Me.Combo.Value & "'"
End Sub

HTH

Pieter

injanib via AccessMonster.com said:
It is already bound to a feild called [Courier] and that is the control
source for the combobox in the form. the options in the combobox are
"FedEx",
"UPS", "DHL" and "Others". I use this form to login incoming packages.
When I
select FedEx to log in fedex packages I have to expand the combobox and
select FedEx for every package. I want have it so that it stays on FedEx
untill I manually change the selection.
You need to bind it to a field in your database.

Put a field in your database to store the selection from your combo, then
in
your form, set the Control Source of your combo to that field.

Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top