Connecting Tech Pros Worldwide Help | Site Map

Combo Box Order

  #1  
Old November 12th, 2005, 07:10 PM
Leee
Guest
 
Posts: n/a
I have about 9 records in a table. This is used as a combo box in a
number of tables. I want the data in the combo box to be in a
specific order; the first three records should be at the top then it
doesn't matter how the other reocrds appear.

Does anyone have any idea how this can be achieved?

Thanks so much,
Leee
  #2  
Old November 12th, 2005, 07:10 PM
Steve Jorgensen
Guest
 
Posts: n/a

re: Combo Box Order


On Fri, 16 Jan 2004 02:48:29 GMT, Leee <leee_smith@earthlink.net> wrote:
[color=blue]
>I have about 9 records in a table. This is used as a combo box in a
>number of tables. I want the data in the combo box to be in a
>specific order; the first three records should be at the top then it
>doesn't matter how the other reocrds appear.
>
>Does anyone have any idea how this can be achieved?
>
>Thanks so much,
>Leee[/color]

Access has no idea what "first 3" means since records do not have any
intrinsic, defined order. If there's something identifiable about the data in
those records, you can certainly use that to sort them.
  #3  
Old November 12th, 2005, 07:10 PM
Roger
Guest
 
Posts: n/a

re: Combo Box Order


add a field to your table called sortOrder, and number 1 - n in the
order you want to see in the combobox

create a query that gives you the combo box fields, ordered by
sortOrder

use the query as the source to your comboxBox

Leee <leee_smith@earthlink.net> wrote in message news:<33ke001t1qbk7qv2cemnpupdl5amb89h80@4ax.com>. ..[color=blue]
> I have about 9 records in a table. This is used as a combo box in a
> number of tables. I want the data in the combo box to be in a
> specific order; the first three records should be at the top then it
> doesn't matter how the other reocrds appear.
>
> Does anyone have any idea how this can be achieved?
>
> Thanks so much,
> Leee[/color]
  #4  
Old November 12th, 2005, 07:13 PM
Leee
Guest
 
Posts: n/a

re: Combo Box Order


Thanks, that sorted my problem. Appreciate the help!

On 16 Jan 2004 04:51:46 -0800, lesperancer@natpro.com (Roger) wrote:
[color=blue]
>add a field to your table called sortOrder, and number 1 - n in the
>order you want to see in the combobox
>
>create a query that gives you the combo box fields, ordered by
>sortOrder
>
>use the query as the source to your comboxBox
>
>Leee <leee_smith@earthlink.net> wrote in message news:<33ke001t1qbk7qv2cemnpupdl5amb89h80@4ax.com>. ..[color=green]
>> I have about 9 records in a table. This is used as a combo box in a
>> number of tables. I want the data in the combo box to be in a
>> specific order; the first three records should be at the top then it
>> doesn't matter how the other reocrds appear.
>>
>> Does anyone have any idea how this can be achieved?
>>
>> Thanks so much,
>> Leee[/color][/color]

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combo box on subform retains values from previous records virtualgreek answers 4 March 9th, 2007 04:25 PM
2 Combo Box Menu from Multiple Query hmiller@hartford.edu answers 3 December 16th, 2005 09:45 PM
Initial Value for Combo Box Text field Lyn answers 8 November 13th, 2005 08:12 AM
Setting the size of column widths of a combo box through Code and Searching Combo Box Will answers 1 November 13th, 2005 07:44 AM