|
-
Nov 12th, 2000, 10:41 PM
#1
Thread Starter
Junior Member
DAO -> ADO: using indexes defined in Access
I am converting a database written to use DAO to now use ADO. In DAO I was using an index that included two fields that has already been setup in the Access DB. Is there a way to use this in ADO. If not what is the equivalent in ADO, I've only found the Find method, that doesn't seem to allow more than one field. If anyone has any advice/code/musings they would like to offer it will be much appreciated.
TIA Wayne
[Edited by Wayne Jones on 11-12-2000 at 11:56 PM]
-
Nov 13th, 2000, 12:00 AM
#2
Thread Starter
Junior Member
DAO -> ADO: using indexes defined in Access
Ok I should have looked more closely at the Help file but its so cumbersome. Anyway I found I can combine the sort and Find methods to achieve what I want but now I get an "Invalid use of property" error on SORT in the following code,
rsManning.CursorLocation = adUseClient
rsManning.Open sOpenRecSet, dDBcnn, , , adCmdText
rsManning.Sort "Hospital ASC, WorkCentre_Code ASC"
can someone tell me what I'm doing wrong.
TIA Wayne
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|