PC Review


Reply
Thread Tools Rate Thread

Database for VB non-Alphabetical

 
 
Bobby
Guest
Posts: n/a
 
      9th Dec 2003
Hi. I am working on checking and adding to an Access 2000
database. The database is being used in a Visual Basic
application. I don't know much about technology so i
would need an easy-to-understand answer, if possible.
(The database is divided into five categories.) After I
have added to or edited some entries and then go to the
program itself, the various drop down boxes are supposed
to show the entries in alphabetical order but sometimes
they are not. The names seem to be random at times.

Can anyone help? Thanks, Bobby.
 
Reply With Quote
 
 
 
 
EricJ
Guest
Posts: n/a
 
      9th Dec 2003
if it's vb.net you can set the combobox.sorted property to true


"Bobby" <(E-Mail Removed)> wrote in message
news:0d2401c3be57$ee9e2680$(E-Mail Removed)...
> Hi. I am working on checking and adding to an Access 2000
> database. The database is being used in a Visual Basic
> application. I don't know much about technology so i
> would need an easy-to-understand answer, if possible.
> (The database is divided into five categories.) After I
> have added to or edited some entries and then go to the
> program itself, the various drop down boxes are supposed
> to show the entries in alphabetical order but sometimes
> they are not. The names seem to be random at times.
>
> Can anyone help? Thanks, Bobby.



 
Reply With Quote
 
Phill. W
Guest
Posts: n/a
 
      9th Dec 2003
"Bobby" <(E-Mail Removed)> wrote in message
news:0d2401c3be57$ee9e2680$(E-Mail Removed)...
.. . .
> After I have added to or edited some entries and then go to the
> program itself, the various drop down boxes are supposed
> to show the entries in alphabetical order but sometimes
> they are not. The names seem to be random at times.


If you fill the drop-downs "long-hand" (i.e. reading from database
and inserting the items in a loop), set the ComboBox's Sorted
property to True.

If the ComboBoxes are data-bound (Yuk!), add an "Order By"
clause to the SQL used to retrieve the values.

HTH,
Phill W.


 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      9th Dec 2003
* "EricJ" <ericRé(E-Mail Removed)> scripsit:
> if it's vb.net you can set the combobox.sorted property to true


This will not work with a combobox attached to a datasource.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      9th Dec 2003
* "Bobby" <(E-Mail Removed)> scripsit:
> Hi. I am working on checking and adding to an Access 2000
> database. The database is being used in a Visual Basic
> application. I don't know much about technology so i
> would need an easy-to-understand answer, if possible.
> (The database is divided into five categories.) After I
> have added to or edited some entries and then go to the
> program itself, the various drop down boxes are supposed
> to show the entries in alphabetical order but sometimes
> they are not. The names seem to be random at times.


Give the databinding ng a try:

<news://news.microsoft.com/microsoft.public.dotnet.framework.windowsforms.databinding>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
 
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
how to add alphabetical tabs on a database =?Utf-8?B?bG9zdGluYWNjZXNz?= Microsoft Access Getting Started 3 26th Sep 2006 04:07 PM
Fields in Access database returned in alphabetical order Julian Microsoft VB .NET 5 12th Mar 2006 12:31 PM
How do I get my database back in alphabetical order? =?Utf-8?B?VmVyb25pY2E=?= Microsoft Access Getting Started 9 23rd Sep 2005 10:10 PM
Creatinig a database to update in alphabetical order =?Utf-8?B?UmFnZ2hpYW50aUdpcmw=?= Microsoft Access Getting Started 8 30th Jun 2005 04:37 PM
Alphabetical search/filter for database records Max Microsoft Dot NET Framework Forms 0 20th Feb 2004 02:44 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:03 PM.