Consulting

Results 1 to 3 of 3

Thread: Connecting To A Database Without The Local Machines Odbc

  1. #1
    VBAX Newbie
    Joined
    May 2007
    Posts
    1
    Location

    Connecting To A Database Without The Local Machines Odbc

    Hi,

    I'm working on a spreadsheet that will connect to a firebird DB (Programmed using VBA and ADO intially).. The spreadsheet itself will reside on a in a server in a shared folder..

    When a user opens the file up, I'd like for the spreadsheet to use the servers ODBC connection, and not the client machine.. This way we don't have to install the Firebird ODBC driver on each client workstation..

    Is this possible?

    Thanks
    David

  2. #2
    Knowledge Base Approver VBAX Master Oorang's Avatar
    Joined
    Jan 2007
    Posts
    1,135
    Location
    I don't have a server to test this on, but what happens when you do this:[VBA]Dim oCnct As ADODB.Connection
    Set oCnct = New ADODB.Connection
    Set oCnct = VBA.CreateObject("ADODB.Connection", "YourServerName")
    [/VBA]

  3. #3
    If Oorang's suggestion does not work, Google "dsn-less connection ado". This is probably what you are looking for...

Posting Permissions

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