Solved

Searching using a datagrid..?

Posted on 2002-07-18
2
130 Views
Last Modified: 2010-05-02
I would like to be able to search for records and have them displayed on a datagrid. It would be even better if I could just type part of the relevant field and get results that match. eg typing 'jo' and getting all the names that begin with Jo...
Ive tried using the following, with a few variations, to no avail. (I'm using MS Access 2000, and connecting with ADO)

"SELECT * from TableName WHERE FName like 'Jo*'",connect..

The connection and all are OK, My only problem is it seems to have a problem with the criteria...
0
Comment
Question by:doefoot01
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 50 total points
ID: 7161862
try
"SELECT * from TableName WHERE FName like 'Jo%'

access < 2000 used *, access 2000 uses % (as far as I remember)

Cheers
0
 

Expert Comment

by:wensinkg
ID: 7161891
It's not so much that Access 2K uses the % for its wildcard as much as it is Jet 4.0 (ADO 2.5 ^) that uses it.  But Angellll is right.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question