ComboBox default values

M

Maureen227

I use a combo box for the user to choose a value. I would like that
value to be the default value until another value is clicked. Can I do
this in properties or even in code for the form

Thanks ahead
Maureen
 
M

Maureen227

Jeff said:
Maureen

Open the form in design mode. Select the combo box. Open the combo box's
properties. Set the Default value.
Thanks for your response.

But set the default property to what. Is there a last value or
something like that I am to use?

Sorry to be so dense. So grateful for help

Maureen
 
M

Maureen227

Jeff said:
Maureen

I'm confused. "I would like that value to be the default value" seems to
imply that YOU know what the default value should be. I don't understand
what you mean by "is there a last value..."?

--
Regards

Jeff Boyce
Microsoft Office/Access MVP


Microsoft IT Academy Program Mentor
http://microsoftitacademy.com/

Microsoft Registered Partner
https://partner.microsoft.com/
Jeff
Thanks for your reply. I'm sorry I was not clear.

I was reading and I found this line of code and it works. In the
afterupdate event of the combo box I wrote me.cboName.defaultvvalue =
me.cboName. This hold the last value chosen in memory until another is
chosen or the form is close.

Thanks again for your time.
Mauren
 
Top