Comments are available to members only. Sign up or Log in to view these comments.
Main Topics
Browse All TopicsI am using an ADO data control (MSADODC.OCX) as the DataSource of a DataGrid
(MSDATGRD.OCX). Just for this simple example, let's say I have a MS SQL
Server table that contains some names. I initially populate the grid with a
statement like this:
adodc.RecordSource = "select name from my_table order by name"
adodc.Refresh
In this example the names are sorted on the DataGrid as shown here:
APPLEGATE
BISCAYNE
BOGGLE
CAT
CINEMA
O'MALLEY
OAR
OBESE
OREGON
OSHKOSH
OTTER
OZ
PEORIA
PITTSBURGH
POPPY
Here we see that O'MALLEY is first of the O's. This is correct in
accordance with the ASCII sort order of the characters. However, if I try
to use find search criteria to move to the first record where name is
greater than or equal to OR
adodc.RecordSet.Find "name >= 'OR'"
adodc.Refresh
It moves to O'MALLEY. It should move to OREGON. When doing a Find using a
search string that starts with an O, the search gets "stuck" on O'MALLEY.
Other Find searches work perfectly. For instance
adodc.RecordSet.Find "name >= 'PI'"
adodc.Refresh
moves to PITTSBURGH. Can anyone provide a solution to this problem?
Thanks.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: Marv-inPosted on 2004-11-04 at 16:54:58ID: 12500202
Comments are available to members only. Sign up or Log in to view these comments.