ComboBox default values

  • Thread starter Thread starter Maureen227
  • Start date Start date
M

Maureen227

I use a combo box for the user to choose a value. I would like that
value to be the default value for the next record or until another
value is clicked . Can I do
this in properties or even in code for the form.
I know there is a Default property on the combo box but what do I but
there. Is there a Default.lastvalue or something I can use?

Thanks ahead
Maureen
 
I use a combo box for the user to choose a value. I would like that
value to be the default value for the next record or until another
value is clicked . Can I do
this in properties or even in code for the form.
I know there is a Default property on the combo box but what do I but
there. Is there a Default.lastvalue or something I can use?

Thanks ahead
Maureen

Code the Combo Box AfterUpdate event:

Me.ComboName.DefaultValue = """" & Me.ComboName & """"

Change ComboName to the actual name of your combo box.
 
fredg said:
Code the Combo Box AfterUpdate event:

Me.ComboName.DefaultValue = """" & Me.ComboName & """"

Change ComboName to the actual name of your combo box.


Fred
This worked great! Thanks a million!!! Or a terabyte of thanks :-)
Maureen
 

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