PC Review


Reply
Thread Tools Rate Thread

Combo Box Alphabetical Order

 
 
Bobbie
Guest
Posts: n/a
 
      16th Feb 2006
Is there a way on my forms that I could
1. Have the entries appear in alphabetical order?
2. The combo box populate anytime I type in an entry that doesn't
appear in the combo box as an option.

I would like to thank you all in advance for any suggestions.

Bobbie

 
Reply With Quote
 
 
 
 
=?Utf-8?B?U3ByaW5rcw==?=
Guest
Posts: n/a
 
      16th Feb 2006
Bobbie,

Add an ORDER BY clause to the combo box' RowSource SQL statement, e.g.,
change:

SELECT Customer.ID, Customer.Name FROM Customers

to

SELECT Customer.ID, Customer.Name FROM Customers ORDER BY Customers.Name

I'm not sure what you mean by question #2. If you wish to permit user entry
of items not in the RowSource, but not save them to a table such that they
subsequently appear in the drop-down list, set the LimitToList property to
No, otherwise, set it to Yes, and use a custom LimitToList event procedure to
add the item. A search of the forum or Google will show you how to do this.

Hope that helps.
Sprinks


"Bobbie" wrote:

> Is there a way on my forms that I could
> 1. Have the entries appear in alphabetical order?
> 2. The combo box populate anytime I type in an entry that doesn't
> appear in the combo box as an option.
>
> I would like to thank you all in advance for any suggestions.
>
> Bobbie
>
>

 
Reply With Quote
 
Al Camp
Guest
Posts: n/a
 
      16th Feb 2006
Bobbie,
1. How your records sort on your form is determined by the
sort order you designate inthe query behind the form.
If you designated a table as the RecordSource, your records will
probably sort by the "indexed" or key field in your table, and you
won't have any control over that.
If you use a query as the RecordSource, you can control how
the records sort/display.

2. I think you mean... "how to add a new choice to your
combo box." Try...
http://home.comcast.net/~cccsolutions/accesstips.html
under NotInListCombobox. This demonstrates how to use the
Not In List event too Add a New Selection to a Combobox.
--
hth
Al Camp
Candia Computer Consulting - Candia NH
http://home.comcast.net/~cccsolutions

"Bobbie" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Is there a way on my forms that I could
> 1. Have the entries appear in alphabetical order?
> 2. The combo box populate anytime I type in an entry that doesn't
> appear in the combo box as an option.
>
> I would like to thank you all in advance for any suggestions.
>
> Bobbie
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Alphabetical order in combo box =?Utf-8?B?Sm9uYXRoYW4=?= Microsoft Access Forms 7 19th Aug 2006 01:10 PM
combo box in alphabetical order =?Utf-8?B?UGF0dGlQ?= Microsoft Access Form Coding 5 3rd Mar 2006 01:55 PM
Sorting bound Combo Box into alphabetical order Steven Microsoft Access Getting Started 2 15th Jul 2004 07:16 AM
combo box contents in alphabetical order? Dogbert Dilbert Microsoft Access 2 30th Jun 2004 09:35 AM
burn songs in my order instead of alphabetical order, how? Waheeba Windows XP Basics 1 6th May 2004 09:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:44 PM.