Combo Box

  • Thread starter Thread starter ray
  • Start date Start date
R

ray

Hell All,

I have a combobox that I would like a default value to
appear. How do I make this happen? Simply setting the
value to a specific text does not work. Well, the value is
set by the value doen't appear in the dropdown box.

I guess what I'm trying to do is mimic updating the field
without actually doing it.

Please advise,
Ray
 
The default value should be a value in the bound column.

You can also try setting the default to
=[ComboboxName].[ItemData](0)

This will set the default value to the first item in your item list. Unless you
have title showing, then you need to use ItemData(1)
 
The COMBOBOX should have a bound column (usually 1). You need a value that
matches one of the values in that column.

Did you put the name of your combobox in place of the generic "ComboboxName"?

Other than that I don't know where we may be failing in our communication.

If the form is not bound, I'm not sure there is a lot you can do to set a
default value, other than setting it through code in one of the form events.
You might try on open or on activate. Since On load and on current have to do
with records and the form is not bound, they probably wouldn't work.
John, the form is not bound. I tried putting what you
suggested in the default field and I didn't get it to work.

How do I deal with a unbound object?

Ray
-----Original Message-----
The default value should be a value in the bound column.

You can also try setting the default to
=[ComboboxName].[ItemData](0)

This will set the default value to the first item in your item list. Unless you
have title showing, then you need to use ItemData(1)
Hell All,

I have a combobox that I would like a default value to
appear. How do I make this happen? Simply setting the
value to a specific text does not work. Well, the value is
set by the value doen't appear in the dropdown box.

I guess what I'm trying to do is mimic updating the field
without actually doing it.

Please advise,
Ray
.
 
Back
Top