473,385 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Database for VB non-Alphabetical

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.
Nov 20 '05 #1
4 1089
if it's vb.net you can set the combobox.sorted property to true
"Bobby" <an*******@discussions.microsoft.com> wrote in message
news:0d****************************@phx.gbl...
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.

Nov 20 '05 #2
"Bobby" <an*******@discussions.microsoft.com> wrote in message
news:0d****************************@phx.gbl...
.. . .
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.
Nov 20 '05 #3
* "Bobby" <an*******@discussions.microsoft.com> 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.dat abinding>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #4
* "EricJ" <ericRéMo**@ThiSomnipack.be> 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>
Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: cooldv | last post by:
i am running a website on Windows 2000 server with ASP 3 webpages and Access 2000 database. (with a hosting company) traffic is slow at this time but expect to grow. lately i have been reading...
6
by: Clay Beatty | last post by:
When you create database diagrams in Enterprise Manager, the details for constructing those diagrams is saved into the dtproperties table. This table includes an image field which contains most of...
2
by: Rodger Dodger | last post by:
Hi there. We have an application that can run on a non-unicode or a unicode sql server database. Currently the application is running in a unicode database, as a non-unicode database is less...
3
by: Oren | last post by:
Hi, Is there any way that calls to sp_addrolemember and sp_droprolemember can be enabled for non database owners and non sysadmin members? This would be very helpful for an application I'm in...
0
by: Rob Young | last post by:
This is the latest in the "Total Non-Programmer" series. Any feedback on the usability of this tutorial would be greatly appreciated. Thanks, Rob How to Build A Web Database (Without...
27
by: Brett | last post by:
If I want to easily swap the database I'm using, what is the best method for developing that tier in my application? I'll have basically a 4 tier app: 1. presentation 2. business logic 3. data...
18
by: Wim | last post by:
Hi, I would like to make and put a query in my database by VB.NET code. Is this possible? Thanks for your help, wim
16
by: Wolfgang Keller | last post by:
Hello, does anyone know of a good book that about development of database applications? Preferrably language independent, if that's not available something "readable" as the example language...
10
by: Jim Devenish | last post by:
I have a split front end/back end system. However I create a number of local tables to carry out certain operations. There is a tendency for the front end to bloat so I have set 'compact on...
39
by: alex | last post by:
I've converted a latin1 database I have to utf8. The process has been: # mysqldump -u root -p --default-character-set=latin1 -c --insert-ignore --skip-set-charset mydb mydb.sql # iconv -f...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.