Results 1 to 3 of 3

Thread: Setting ODBC Data Source through VB

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    736

    Question

    Hi,

    I have several applications written in FoxPro and would like to access the databases from VB. On my development PC, I use the Data Sources Control Panel to create a new Data Source Name and assign it a driver and location of the FoxPro database.

    If I want to distribute the VB executable to other machines, is there a way through VB code to set up the Data Source? Or will the user need to use the Control Panel to set it up?

    Or am I going about the whole concept the wrong way?

    Thanks for any information.

  2. #2
    Lively Member
    Join Date
    Aug 2000
    Location
    Ontario, Canada
    Posts
    79

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    736

    Cool

    Thanks for the link. That has taken me close to getting this to work, but I obviously am missing something in the connection string.

    If anyone out there in VB land has a working example of creating a Data Source for a Visual FoxPro database container using the SQLConfigDataSource API, I would appreciate a post of the code.

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