Results 1 to 3 of 3

Thread: Anyone no this?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2000
    Posts
    29
    Anyone no how to open a Visual Foxpro Database with ADO

    I can successfully open ADO with Access but not
    Visual Foxpro Table.

    Anyone have code for this?

    Bruno

  2. #2
    Guest
    Hi, i didnt work on Visual FoxPro but i think u need to use a DSN to work with ur DB. U can do this by going to Control Panel -> ODBC32 bit and Creating a DSN by choosing the appropriate driver from the list. I think this should help you in connecting to ur database and if u r successful u will find it that life is easier for u using ADOs.

    Hope this gives u some idea. Please keep me informed. All the best...vijay

  3. #3
    Member
    Join Date
    Aug 2000
    Posts
    60
    Here's the connection string for Visual Foxpro, also works for DBase. Just remember that the <path> tag points to the folder where the .dbf files are and not the .dbf file itself, your recordset object would then reference the .dbf's filename without the extension.

    cnADO.ConnectionString = "Driver={Microsoft Visual FoxPro Driver};UID=;PWD=;SourceDB=<path>;SourceType=DBF;Exclusive=No;BackgroundFetch=Yes;Collate=Machine;Nu ll=Yes;Deleted=Yes;"
    Barend
    JHB-SA

    Nothing is impossible, except skiing through a revolving door.

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