CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2001
    Posts
    2

    export .mdb to .dbf

    give some code on how to search, add,edit,delete if my extension name is .dbf i'am useing ADO


  2. #2
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: export .mdb to .dbf

    You can do it the same way as it is an mdb file. The difference will be only in your connection string.

    oConn.Open "Driver={Microsoft dBASE Driver (*.dbf)};" & _
    "DriverID=277;" & _
    "Dbq=\somepath;"

    Note: Specify the filename in the SQL statement. For example:
    oRs.Open "Select * From user.dbf", oConn, , ,adCmdText

    Note: MDAC 2.1 (or greater) requires the Borland Database Engine (BDE) to update dBase DBF files.
    (Q238431).



    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

  3. #3
    Join Date
    Sep 2001
    Posts
    254

    dbf and ado

    oConn.Open "Driver={Microsoft dBASE Driver (*.dbf)};" & _
    "DriverID=277;" & _
    "Dbq=\somepath;"

    Note: Specify the filename in the SQL statement. For example:
    oRs.Open "Select * From user.dbf", oConn, , ,adCmdText

    Note: MDAC 2.1 (or greater) requires the Borland Database Engine (BDE) to update dBase DBF files.
    (Q238431).

    I'tried to use this ..but failed..what am i missing

    thanks

    cyrus

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

Featured