RowSource

accessman2

Registered User.
Local time
Today, 07:14
Joined
Sep 15, 2005
Messages
335
Hi,

I create the the combox in the form.

The Enter Event of the combox is

name.rowsource = "(select 'ALL' From [tbl]) Union (select [Name] from [tbl] Group By [Name] Order By [Name])"

The list solutions are:
Alan
ALL
Amy
Jeff
....
...

Can I put "ALL" in the first postion?

ALL
Alex
Amy
....


Because "ALL" means all the values.
I want to put "ALL" in the first place.

Thanks.
 
A quick and dirty solution would be to change ALL to (ALL). () comes before A, and is nice in making it stand out from the other secletion as well.
 
Put "<ALL>" in the property sheet->Data tab as the default value

accessman2 said:
Hi,

I create the the combox in the form.

The Enter Event of the combox is

name.rowsource = "(select 'ALL' From [tbl]) Union (select [Name] from [tbl] Group By [Name] Order By [Name])"

The list solutions are:
Alan
ALL
Amy
Jeff
....
...

Can I put "ALL" in the first postion?

ALL
Alex
Amy
....


Because "ALL" means all the values.
I want to put "ALL" in the first place.



Thanks.
 

Users who are viewing this thread

Back
Top Bottom