?
Solved

Searching using a datagrid..?

Posted on 2002-07-18
2
Medium Priority
?
131 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 200 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month12 days, 11 hours left to enroll

777 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