Results 1 to 3 of 3

Thread: Vb(foxpro)

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2000
    Location
    karachi
    Posts
    90

    Exclamation

    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



  2. #2
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844
    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.....)

  3. #3
    New Member
    Join Date
    May 2000
    Posts
    3

    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.
    -Glen

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width