Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


How to use ADO and Windows Desktop Search with VBA

Posted on 2010-01-11
Medium Priority
Last Modified: 2013-11-27
I found this thread here with an example


I have put another example below.  This is not my code just an example.

Upon trying to open the connection I get "Provider Cannot be Found. It may not be properly Installed"

I would like to be able to run this from MS Access 2003.
Dim con As ADODB.Connection
Dim rst As ADODB.Recordset

Set con = New ADODB.Connection
Set rst = New ADODB.Recordset

Dim sConString As String
Dim sSQLString As String

sConString = "Provider=Search.CollatorDSO;Extended Properties='Application=Windows';"
con.Open sConString

sSQLString = "SELECT Top 5 System.ItemPathDisplay FROM SYSTEMINDEX"

Set rst = con.Execute(sSQLString)

Do Until (rst.EOF)
   Debug.Print rst.Fields.Item("System.ItemPathDisplay").Value

Set rst = Nothing

Set con = Nothing

Open in new window

Question by:darbid73
LVL 29

Accepted Solution

nffvrxqgrcfqvvc earned 2000 total points
ID: 26282814
If you use Windows XP you have to download Windows Search 4.0

I think this is part of the operating sytem if the user is running Vista SP1 or greater and I can confirm it's part of the operating system on Windows7.
LVL 20

Author Comment

ID: 26282903
Ahh its a version propblem.

I am on a work computer with admins somewhere pushing updates to us.  Our WDS is only  02.06.5000.5378.  Does ot surprise me that we have a version from 2006 - http://technet.microsoft.com/en-us/library/cc771683%28WS.10%29.aspx

I suppose that I cannot download the provider without getting the whole thing? Probably be not compatible anyway.

Featured Post

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

Question has a verified solution.

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

I have had my own IT business for a very long time. I started mostly with hardware and after about a year started to notice a common theme. I had shelves with software boxes -- Peachtree, Quicken, Sage, Ouickbooks -- and yet most of my clients were…
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
Enter Foreign and Special Characters Enter characters you can't find on a keyboard using its ASCII code ... and learn how to make a handy reference for yourself using Excel ~ Use these codes in any Windows application! ... whether it is a Micr…
Suggested Courses

580 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