|
-
May 31st, 2000, 12:26 PM
#1
Thread Starter
Lively Member
Hello,
i am using dao and connected with foxpro2.6
i have indexed in foxpro but how to do index on
vb because the form is showing record scatter
can any one tell me to do the index or sort
with vb(foxpro)
thank you
-
May 31st, 2000, 01:12 PM
#2
Guru
if you want the records to be in some sort of order, you'll have to specify the record order in your SQL statement or use the SORT function (I'm not sure if a DAO recordset has a sort function.....)
-
Jun 1st, 2000, 12:47 AM
#3
New Member
Use FoxPro Index
After you set the db, use the index property:
Set rs = db.OpenRecordset("tblMaster", dbOpenTable)
rs.Index = "PrimaryKey"
Note:
You must open as a table (not a recordset) to use Index.
Replace "PrimaryKey" with your index name from FoxPro.
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
|