Results 1 to 3 of 3

Thread: DAO editing Foxpro file

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2000
    Posts
    29

    Exclamation

    I'm having a difficult time opening a Foxpro File in DAO which allows updates

    Set db = OpenDatabase("C:\BRUNO", False, False, "FoxPro 2.6;")

    Set rs = db.OpenRecordset("TEST", dbOpenTable)

    This allows me to open the file but not update.

    What's wrong.


    B. Servello


  2. #2
    Junior Member
    Join Date
    Aug 2000
    Location
    Rockford, IL
    Posts
    21

    Maybe..

    I don't know much about FoxPro but I know in Access
    I have to use something like this.

    With RS
    .Edit
    !The_Field = "What I want to add"
    .Update
    End With

    Try it and if works let me know.
    Becuase then I can start to use FoxPro instead of Access withouth any serious changes to my way of coding.






  3. #3
    Junior Member
    Join Date
    Aug 2000
    Location
    Rockford, IL
    Posts
    21

    Don't Forget

    If you open it be sure to close it!


    RS.Close
    DB.Close

    I don't know if that will work in FoxPro either.


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