I fill a combo box with '1, 2, 3, 4, 5' using additem and tie it to a data
source.

When the form first opens there is no value in the combo box if the data
source has no data.

I choose a 2 from the combo box.

I change my mind. I do not know the value I want in the combo box.

But, how do I get the combo box back into its no value stage?

The workaround I use is to create a two dimensional array (' ',1), ('1',2),
('2',3), ('3',4), ('4',5), ('5',6) and tie the data source to the second
column.

There are better ways to do this, I guess. Please enlighten me.

Sincerely,

Jan Nordgreen

Re: I want no value selected in the combo box. by Gene

Gene
Mon Dec 01 08:18:52 CST 2003

set the combobox value property back to zero

thisform.Combo1.Value = 0


Jan Nordgreen wrote:

> I fill a combo box with '1, 2, 3, 4, 5' using additem and tie it to a data
> source.
>
> When the form first opens there is no value in the combo box if the data
> source has no data.
>
> I choose a 2 from the combo box.
>
> I change my mind. I do not know the value I want in the combo box.
>
> But, how do I get the combo box back into its no value stage?
>
> The workaround I use is to create a two dimensional array (' ',1), ('1',2),
> ('2',3), ('3',4), ('4',5), ('5',6) and tie the data source to the second
> column.
>
> There are better ways to do this, I guess. Please enlighten me.
>
> Sincerely,
>
> Jan Nordgreen
>
>

Re: I want no value selected in the combo box. by Leonid

Leonid
Mon Dec 01 08:20:28 CST 2003

May be ctrl+0?

Leonid


"Jan Nordgreen" <room23111@REMOVETHIShotmail.com> wrote in message =
news:OPiIYAAuDHA.2248@TK2MSFTNGP09.phx.gbl...
> I fill a combo box with '1, 2, 3, 4, 5' using additem and tie it to a =
data
> source.
>=20
> When the form first opens there is no value in the combo box if the =
data
> source has no data.
>=20
> I choose a 2 from the combo box.
>=20
> I change my mind. I do not know the value I want in the combo box.
>=20
> But, how do I get the combo box back into its no value stage?
>=20
> The workaround I use is to create a two dimensional array (' ',1), =
('1',2),
> ('2',3), ('3',4), ('4',5), ('5',6) and tie the data source to the =
second
> column.
>=20
> There are better ways to do this, I guess. Please enlighten me.
>=20
> Sincerely,
>=20
> Jan Nordgreen
>=20
>=20


Re: I want no value selected in the combo box. by trw7at

trw7at
Wed Dec 03 11:24:45 CST 2003

Hmmm. This actually works! I knew you could do this with
a checkbox, but never knew you could blank out a listbox
with it! Good one, Leonid.

-- TRW

Leonid seemed to utter in news:eHkowYBuDHA.1680@TK2MSFTNGP12.phx.gbl:

> May be ctrl+0?
>
> Leonid
>
>
> "Jan Nordgreen" <room23111@REMOVETHIShotmail.com> wrote in message
> news:OPiIYAAuDHA.2248@TK2MSFTNGP09.phx.gbl...
>> I fill a combo box with '1, 2, 3, 4, 5' using additem and tie it to a
>> data source.
>>
>> When the form first opens there is no value in the combo box if the
>> data source has no data.
>>
>> I choose a 2 from the combo box.
>>
>> I change my mind. I do not know the value I want in the combo box.
>>
>> But, how do I get the combo box back into its no value stage?



--
_______________________________________
My e-mail: t r w 7
@ i x . n e t c o m . c o m
_______________________________________

Re: I want no value selected in the combo box. by Anders

Anders
Fri Dec 05 18:12:25 CST 2003

CTRL+0 enters NULL in a control. So make sure your users don't pick up the
habit of entering nulls where you wouldn't want them and never thought you
would get them <g>.
-Anders

"Tim Witort" <trw7at@ixdot.netcomdotcom> wrote in message
news:Xns94465FD017A21timwitortwrotethis@207.217.77.206...
> Hmmm. This actually works! I knew you could do this with
> a checkbox, but never knew you could blank out a listbox
> with it! Good one, Leonid.
>
> -- TRW
>
> Leonid seemed to utter in news:eHkowYBuDHA.1680@TK2MSFTNGP12.phx.gbl:
>
> > May be ctrl+0?
> >
> > Leonid
> >
> >
> > "Jan Nordgreen" <room23111@REMOVETHIShotmail.com> wrote in message
> > news:OPiIYAAuDHA.2248@TK2MSFTNGP09.phx.gbl...
> >> I fill a combo box with '1, 2, 3, 4, 5' using additem and tie it to a
> >> data source.
> >>
> >> When the form first opens there is no value in the combo box if the
> >> data source has no data.
> >>
> >> I choose a 2 from the combo box.
> >>
> >> I change my mind. I do not know the value I want in the combo box.
> >>
> >> But, how do I get the combo box back into its no value stage?
>
>
>
> --
> _______________________________________
> My e-mail: t r w 7
> @ i x . n e t c o m . c o m
> _______________________________________