Connecting Tech Pros Worldwide Help | Site Map

Combo Box Order

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 12th, 2005, 06:10 PM
Leee
Guest
 
Posts: n/a
Default Combo Box Order

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, 06:10 PM
Steve Jorgensen
Guest
 
Posts: n/a
Default 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, 06:10 PM
Roger
Guest
 
Posts: n/a
Default 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, 06:13 PM
Leee
Guest
 
Posts: n/a
Default 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]

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,840 network members.